fix(sfc/types): allow use default factory for primitive types in withDefaults (#5939)
fix #5938
This commit is contained in:
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user