UNPKG

@multiplayer-app/session-recorder-browser

Version:
11 lines 819 B
/** * Validation helper functions for configuration objects */ export declare const isValidStringOrRegExp: (value: string | RegExp | undefined, defaultValue: string | RegExp) => string | RegExp; export declare const isValidString: <T extends string>(value: string | undefined | T, defaultValue: string) => string; export declare const isValidNumber: (value: number | undefined, defaultValue: number) => number; export declare const isValidBoolean: (value: boolean | undefined, defaultValue: boolean) => boolean; export declare const isValidArray: (value: any[] | undefined, defaultValue: any[]) => any[]; export declare const isValidEnum: <T>(value: any | T, defaultValue: T, enumValues: T[]) => T; export declare const isValidFunction: (value: any, defaultValue: any) => any; //# sourceMappingURL=validators.d.ts.map