mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Add ts types
This commit is contained in:
parent
d481da9df0
commit
96cf4a0ec4
7
index.d.ts
vendored
Normal file
7
index.d.ts
vendored
Normal 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/*" {}
|
@ -11,6 +11,7 @@
|
||||
}
|
||||
],
|
||||
"main": "./index.js",
|
||||
"types": "./index.d.js",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
Loading…
Reference in New Issue
Block a user