Skip to content

Commit b6d3e47

Browse files
committed
fix: export module types
resolves #61
1 parent 6807b69 commit b6d3e47

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"exports": {
1414
".": {
1515
"import": "./dist/module.mjs",
16-
"require": "./dist/module.cjs"
16+
"require": "./dist/module.cjs",
17+
"types": "./dist/types.d.ts"
1718
}
1819
},
1920
"main": "./dist/module.cjs",

src/module.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { loadExternalSources } from './loader'
1616
import type { NuxtComponentMeta } from './types'
1717

1818
export * from './options'
19+
export type * from './types.d'
1920

2021
const slotReplacer = (_: unknown, _before: string, slotName: string, _rest: unknown) => `<slot ${_before || ''}${slotName === 'default' ? '' : `name="${slotName}"`}`
2122

0 commit comments

Comments
 (0)