Skip to content

Commit

Permalink
Merge pull request #32 from patrickcate/feature/type-template
Browse files Browse the repository at this point in the history
fix: move vue-uswds module declaration from file to module.ts
  • Loading branch information
patrickcate authored Apr 21, 2024
2 parents 9c96722 + 66b0e1a commit c0dc0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/global.d.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ export default defineNuxtModule<ModuleOptions>({
}

addTypeTemplate({
src: resolver.resolve('./global.d.ts'),
filename: 'types/vue-uswds.d.ts',
getContents: () =>
`declare module 'vue-uswds/core';\ndeclare module 'vue-uswds/components';`,
});

// Do not add the extension since the `.ts` will be transpiled to
Expand Down

0 comments on commit c0dc0ae

Please sign in to comment.