Skip to content

Commit f2d2d7b

Browse files
authored
fix(types): scrip-setup+ts: ensure proper handling of null as default prop value. (#4979)
fix #4868
1 parent d145128 commit f2d2d7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/runtime-core/src/apiSetupHelpers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ type InferDefaults<T> = {
131131
}
132132

133133
type InferDefault<P, T> = T extends
134+
| null
134135
| number
135136
| string
136137
| boolean

0 commit comments

Comments
 (0)