fix(types): add RawSlots in h signature (#1293)

This commit is contained in:
Cédric Exbrayat
2020-06-12 16:38:56 +02:00
committed by GitHub
parent b015892de6
commit cab769f174
3 changed files with 12 additions and 2 deletions

View File

@@ -29,6 +29,9 @@ describe('h inference w/ element', () => {
expectError(h('div', { ref: {} }))
// @ts-expect-error
expectError(h('div', { ref: 123 }))
// slots
const slots = { default: () => {} } // RawSlots
h('div', {}, slots)
})
describe('h inference w/ Fragment', () => {