fix(types): relax ComponentPublicInstanceConstructor type for class components (#1943)
This commit is contained in:
@@ -701,6 +701,16 @@ describe('defineComponent', () => {
|
||||
components: { comp }
|
||||
})
|
||||
})
|
||||
|
||||
test('should accept class components with receiving constructor arguments', () => {
|
||||
class Comp {
|
||||
static __vccOpts = {}
|
||||
constructor(_props: { foo: string }) {}
|
||||
}
|
||||
defineComponent({
|
||||
components: { Comp }
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('emits', () => {
|
||||
|
||||
Reference in New Issue
Block a user