UNPKG

@leancodepl/kratos

Version:

Headless React components library for building Ory Kratos authentication flows

10 lines (9 loc) 376 B
type TypeofToType = { undefined: undefined; string: string; number: number; boolean: boolean; object: object; }; export declare const hasProperetyOfType: <Prop extends string, PropType extends keyof TypeofToType>(obj: object | undefined, propertyName: Prop, propertyType: PropType) => obj is object & { [Key in Prop]: TypeofToType[PropType]; }; export {};