validator.d.ts 605 B

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