test(types): assert props are readonly

This commit is contained in:
Evan You 2019-11-09 10:03:58 -05:00
parent f2cdc82be3
commit a5f962ab8e

View File

@ -50,6 +50,9 @@ describe('with object props', () => {
expectType<ExpectedProps['ccc']>(props.ccc)
expectType<ExpectedProps['ddd']>(props.ddd)
// props should be readonly
expectError((props.a = 1))
// setup context
return {
c: ref(1),