test: improve tests and typing for runtime-core (#100)
* test: add test case for declaring Array prop type with constructor casting in `createComponent` * test: add test case for `setup(props)` with explicit props declaration
This commit is contained in:
committed by
Evan You
parent
f48a2ffc76
commit
8133b3867a
@@ -517,7 +517,7 @@ describe('renderer: suspense', () => {
|
||||
|
||||
const Comp = {
|
||||
setup() {
|
||||
const error = ref<any>(null)
|
||||
const error = ref<Error | null>(null)
|
||||
onErrorCaptured(e => {
|
||||
error.value = e
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user