Skip to content

Commit

Permalink
fix(types): scrip-setup+ts: ensure proper handling of null as defau…
Browse files Browse the repository at this point in the history
…lt prop value. (#4979)

fix #4868
  • Loading branch information
LinusBorg committed Nov 25, 2021
1 parent d145128 commit f2d2d7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime-core/src/apiSetupHelpers.ts
Expand Up @@ -131,6 +131,7 @@ type InferDefaults<T> = {
}

type InferDefault<P, T> = T extends
| null
| number
| string
| boolean
Expand Down

0 comments on commit f2d2d7b

Please sign in to comment.