typegraphql-prisma-nestjs
Version:
This project is a fork of another with minor changes, created for personal use.
5 lines (4 loc) • 659 B
TypeScript
export declare function parseStringBoolean(stringBoolean: string | string[] | undefined): boolean | undefined;
export declare function parseString(value: string | string[] | undefined, optionPropertyName: string): string | undefined;
export declare function parseStringArray<TAllowedValue extends string>(stringArray: string | string[] | undefined, optionPropertyName: string, allowedValues?: readonly TAllowedValue[]): TAllowedValue[] | undefined;
export declare function parseStringEnum<TAllowedValue extends string>(stringEnum: string | string[] | undefined, optionPropertyName: string, allowedValues: readonly TAllowedValue[]): TAllowedValue | undefined;