Skip to content

Commit

Permalink
fix: export types (#112)
Browse files Browse the repository at this point in the history
* fix(module): import runtime types without relative path

* fix(plugin): export app type
  • Loading branch information
dargmuesli authored Jul 26, 2023
1 parent d53e17e commit b526977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default defineNuxtModule<ModuleOptions>({
filename: 'cookie-control-options.ts',
write: true,
getContents: () =>
`import { ModuleOptions } from '../../src/runtime/types'\n\nexport default ${JSON.stringify(
`import { ModuleOptions } from '#cookie-control/types'\n\nexport default ${JSON.stringify(
moduleOptions,
undefined,
2,
Expand Down
2 changes: 1 addition & 1 deletion playground/types.ts → src/runtime/plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { State } from '../src/runtime/types'
import { State } from './types'

declare module '#app' {
interface NuxtApp {
Expand Down

0 comments on commit b526977

Please sign in to comment.