ExtractPropTypes<O>: {
    [K in keyof Pick<O, RequiredKeys<O>>]: 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

  • O