소스 검색

fix(types): scrip-setup+ts: ensure proper handling of `null` as default prop value. (#4979)

fix #4868
Thorsten Lünborg 4 년 전
부모
커밋
f2d2d7b2d2
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      packages/runtime-core/src/apiSetupHelpers.ts

+ 1 - 0
packages/runtime-core/src/apiSetupHelpers.ts

@@ -131,6 +131,7 @@ type InferDefaults<T> = {
 }
 
 type InferDefault<P, T> = T extends
+  | null
   | number
   | string
   | boolean