Skip to content

Commit

Permalink
fix: add augmentations for $device helper
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala committed Aug 29, 2024
1 parent 7b64ac6 commit e758cc6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,15 @@ declare module '@nuxt/schema' {
device: Required<ModuleOptions>
}
}

declare module '#app' {
interface NuxtApp {
$device: Device
}
}

declare module 'vue' {
interface ComponentCustomProperties {
$device: Device
}
}

0 comments on commit e758cc6

Please sign in to comment.