fix(types): components options should accept components defined with defineComponent (#602)

This commit is contained in:
Cédric Exbrayat
2020-01-13 23:12:45 +01:00
committed by Evan You
parent 63a6563106
commit 74baea108a
2 changed files with 12 additions and 1 deletions

View File

@@ -259,3 +259,11 @@ describe('compatibility w/ createApp', () => {
})
createApp().mount(comp3, '#hello')
})
describe('defineComponent', () => {
test('should accept components defined with defineComponent')
const comp = defineComponent({})
defineComponent({
components: { comp }
})
})