vue-lynx / ExtractPropTypes

Type Alias: ExtractPropTypes<O>

type ExtractPropTypes<O>: { [K in keyof Pick<O, RequiredKeys<O>>]: O[K] extends Object ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]> } & { [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]> };

Extract prop types from a runtime props options object. The extracted types are internal - i.e. the resolved props received by the component.

  • Boolean props are always present
  • Props with default values are always present

To extract accepted props from the parent, use ExtractPublicPropTypes.

Type Parameters

Type Parameter
O

Defined in

node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:132