Skip to content

Commit

Permalink
fix: add back internal type reference only
Browse files Browse the repository at this point in the history
resolves #336
  • Loading branch information
danielroe committed Sep 23, 2024
1 parent 807b201 commit 582bc3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,5 @@ export default defineNuxtModule<ModuleOptions>({
],
})
})

nuxt.hook('prepare:types', ({ references }) => {
references.push({ types: '@types/cloudflare-turnstile' })
})
nuxt.options.typescript.hoist.push('@types/cloudflare-turnstile')
},
})
1 change: 1 addition & 0 deletions src/runtime/composables/turnstile.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference types="@types/cloudflare-turnstile" />
import { useRegistryScript } from '#nuxt-scripts-utils'
import type { RegistryScriptInput } from '#nuxt-scripts'

Expand Down

0 comments on commit 582bc3b

Please sign in to comment.