Skip to content

Commit

Permalink
chore(module): add d.ts file
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 26, 2022
1 parent ec8bd5c commit 8c24b5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ export default defineNuxtModule<ModuleOptions>({
filename: 'ui.mjs',
getContents: () => `export default ${JSON.stringify(ui)}`
})
addTemplate({
filename: 'ui.d.ts',
write: true,
getContents: () => 'declare const d: any; export default d;'
})
})

await installModule('@nuxtjs/color-mode', { classSuffix: '' })
Expand Down

1 comment on commit 8c24b5d

@vercel
Copy link

@vercel vercel bot commented on 8c24b5d Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
nuxthq-ui.vercel.app
ui-nuxtlabs.vercel.app

Please sign in to comment.