Skip to content

Commit

Permalink
feat: extend GlobalComponents interface to include 'primitive' compon…
Browse files Browse the repository at this point in the history
…ent type (#896)

* feat: extend GlobalComponents interface to include 'primitive' component type

* fix: extend GlobalComponents interface to include primitive components

* fix: augment only `vue` module
  • Loading branch information
alvarosabu authored Jan 3, 2025
1 parent d377750 commit b78a6ff
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,7 @@ type TresComponents = {
}

declare module 'vue' {
export interface GlobalComponents extends TresComponents { }
}
declare module '@vue/runtime-core' {
interface GlobalComponents extends TresComponents { }
}
declare module '@vue/runtime-dom' {
interface GlobalComponents extends TresComponents {}
export interface GlobalComponents extends TresComponents {
primitive: DefineComponent<TresPrimitive>
}
}

0 comments on commit b78a6ff

Please sign in to comment.