Add ts types

This commit is contained in:
Sebastien Chopin 2017-05-29 17:03:28 +02:00
parent d481da9df0
commit 96cf4a0ec4
2 changed files with 8 additions and 0 deletions

7
index.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
//These declarations allow TypeScript to import non-js/ts files without the file extensions (such as .vue files)
declare module "~components/*" {}
declare module "~layouts/*" {}
declare module "~pages/*" {}
declare module "~assets/*" {}
declare module "~static/*" {}

View File

@ -11,6 +11,7 @@
} }
], ],
"main": "./index.js", "main": "./index.js",
"types": "./index.d.js",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",