Skip to content

wevu / index / InferProps

类型别名: InferProps<P>

InferProps<P> = { [K in keyof Pick<P, RequiredKeys<P>>]: HasDefault<P[K]> extends true ? Exclude<InferPropType<P[K]>, undefined> : InferPropType<P[K]> } & { [K in keyof Pick<P, OptionalKeys<P>>]?: InferPropType<P[K]> }

定义于: packages/wevu/src/runtime/types.ts:361

类型参数

P

P extends ComponentPropsOptions = ComponentPropsOptions

Released under the MIT License.