validator.d.ts 605 B

123456789
  1. export declare function isFunction(val: unknown): val is Function;
  2. export declare function isPlainObject(val: unknown): val is Record<string, unknown>;
  3. export declare function isPromise<T = unknown>(val: unknown): val is Promise<T>;
  4. export declare function isDef(value: unknown): boolean;
  5. export declare function isObj(x: unknown): x is Record<string, unknown>;
  6. export declare function isNumber(value: string): boolean;
  7. export declare function isBoolean(value: unknown): value is boolean;
  8. export declare function isImageUrl(url: string): boolean;
  9. export declare function isVideoUrl(url: string): boolean;