Skip to content

Commit

Permalink
fix(forwardRefs): include forwarded elements in instance type
Browse files Browse the repository at this point in the history
fixes #17299
  • Loading branch information
KaelWD committed May 5, 2023
1 parent 2ef500a commit 6fd1a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/forwardRefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Refs = Symbol('Forwarded refs')
/** Omit properties starting with P */
type OmitPrefix<T, P extends string> = [Extract<keyof T, `${P}${any}`>] extends [never] ? T : Omit<T, `${P}${any}`>

type OmitProps<T> = T extends { $props: any } ? Omit<T, keyof T['$props']> : never
type OmitProps<T> = T extends { $props: any } ? Omit<T, keyof T['$props']> : T

function getDescriptor (obj: any, key: PropertyKey) {
let currentObj = obj
Expand Down

0 comments on commit 6fd1a13

Please sign in to comment.