Skip to content

Commit

Permalink
fix: allow use default factory for primitive types
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 committed May 17, 2022
1 parent c03459b commit ab1ec2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiSetupHelpers.ts
Expand Up @@ -139,7 +139,7 @@ type InferDefault<P, T> = T extends
| boolean
| symbol
| Function
? T
? T | ((props: P) => T)
: (props: P) => T

type PropsWithDefaults<Base, Defaults> = Base & {
Expand Down

0 comments on commit ab1ec2d

Please sign in to comment.