Skip to content

Commit 66911a8

Browse files
committed
fix: expose declarations in index.d.ts
1 parent 8c7f4dc commit 66911a8

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

src/types/nuxt.ts renamed to index.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import 'vue'
2-
import type { Auth } from '../core'
3-
import type { ModuleOptions } from '../options'
4-
import type { RecursivePartial } from './utils'
2+
import '@nuxt/types'
3+
import type { ModuleOptions, RecursivePartial, Auth } from './dist/index'
4+
5+
export * from './dist/index'
56

67
declare module '@nuxt/types' {
78
interface Context {

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
}
1616
},
1717
"main": "./dist/module.js",
18-
"typings": "./dist/index.d.ts",
18+
"typings": "./index.d.ts",
1919
"files": [
2020
"dist",
21-
"templates"
21+
"templates",
22+
"index.d.ts"
2223
],
2324
"scripts": {
2425
"build": "siroc build && yarn build:types",

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ export * from './types'
22
export * from './runtime'
33
export * from './module'
44
export * from './providers'
5+
export * from './options'

src/types/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export * from './nuxt'
21
export * from './provider'
32
export * from './request'
43
export * from './router'

tsdoc-metadata.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2+
// It should be published with your NPM package. It should not be tracked by Git.
3+
{
4+
"tsdocVersion": "0.12",
5+
"toolPackages": [
6+
{
7+
"packageName": "@microsoft/api-extractor",
8+
"packageVersion": "7.12.1"
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)