GetPropDefType
Home > @backstage/canon
> GetPropDefType
Signature:
export type GetPropDefType<Def> = Def extends BooleanPropDef ? Def extends ResponsivePropDef ? Responsive<boolean> : boolean : Def extends StringPropDef ? Def extends ResponsivePropDef ? Responsive<string> : string : Def extends ReactNodePropDef ? Def extends ResponsivePropDef ? Responsive<React.ReactNode> : React.ReactNode : Def extends EnumOrStringPropDef<infer Type> ? Def extends ResponsivePropDef<infer Type extends string> ? Responsive<string | Type> : string | Type : Def extends EnumPropDef<infer Type> ? Def extends ResponsivePropDef<infer Type> ? Responsive<Type> : Type : never;
References: BooleanPropDef, ResponsivePropDef, Responsive, StringPropDef, ReactNodePropDef, EnumOrStringPropDef, EnumPropDef