Skip to content

Commit 847d97a

Browse files
committed
chore: fix client detect plugin imports
1 parent 695cdce commit 847d97a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/plugins/detect.client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { browserName, detect, asyncDetect, detectOS, parseUserAgent } from 'detect-browser-es'
2-
import type { UserAgentDataHints } from '../shared-types/types'
2+
import type { UserAgentHints } from '../shared-types/types'
33
import { defineNuxtPlugin } from '#imports'
44

55
export default defineNuxtPlugin({
@@ -9,7 +9,7 @@ export default defineNuxtPlugin({
99
provide: {
1010
browserName: () => browserName(navigator.userAgent),
1111
detectBrowser: () => detect(navigator.userAgent),
12-
detectBrowserAsync: (hints?: UserAgentDataHints[]) => asyncDetect({
12+
detectBrowserAsync: (hints?: UserAgentHints[]) => asyncDetect({
1313
userAgent: navigator.userAgent,
1414
hints,
1515
}),

0 commit comments

Comments
 (0)