Skip to content

Commit

Permalink
fix(types): add declaration for vuetify/lib/components (#13395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djaler committed Jun 13, 2021
1 parent 02c828a commit d8a6cff
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions packages/vuetify/types/lib.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
declare module 'vuetify/lib' {
// eslint-disable-next-line import/no-duplicates
import { VueConstructor, DirectiveOptions } from 'vue'
import Vuetify from 'vuetify'
import { Colors } from 'vuetify/lib/util/colors'

export default Vuetify

const colors: Colors
const ClickOutside: DirectiveOptions
const Intersect: DirectiveOptions
const Mutate: DirectiveOptions
const Resize: DirectiveOptions
const Ripple: DirectiveOptions
const Scroll: DirectiveOptions
const Touch: DirectiveOptions

export {
colors,
}
export * from 'vuetify/lib/components'
export * from 'vuetify/lib/directives'
}

declare module 'vuetify/lib/components' {
import { VueConstructor } from 'vue'

const VApp: VueConstructor
const VAppBar: VueConstructor
const VAppBarNavIcon: VueConstructor
Expand Down Expand Up @@ -179,14 +181,6 @@ declare module 'vuetify/lib' {
const VExpandXTransition: VueConstructor

export {
colors,
ClickOutside,
Intersect,
Mutate,
Ripple,
Resize,
Scroll,
Touch,
VApp,
VAppBar,
VAppBarNavIcon,
Expand Down Expand Up @@ -354,7 +348,6 @@ declare module 'vuetify/lib' {
}

declare module 'vuetify/lib/directives' {
// eslint-disable-next-line import/no-duplicates
import { DirectiveOptions } from 'vue'

const ClickOutside: DirectiveOptions
Expand Down

0 comments on commit d8a6cff

Please sign in to comment.