Skip to content

Commit

Permalink
fix: add runtime types to type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
happy-turtle committed Jun 28, 2024
1 parent 800f947 commit fef4c4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
".": {
"import": "./dist/module.mjs",
"require": "./dist/module.cjs",
"types": "./dist/runtime/types/index.d.ts"
"types": "./dist/types.d.ts"
}
},
"main": "./dist/module.cjs",
Expand Down
2 changes: 2 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { defineNuxtModule, addPlugin, addImportsDir } from '@nuxt/kit'
import { joinURL } from 'ufo'
import { DirectusQueryParams } from './runtime/types'

export type * from './runtime/types'

export interface ModuleOptions {
/**
* Directus API URL
Expand Down

0 comments on commit fef4c4f

Please sign in to comment.