index.d.mts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { T as TypeName, C as Class, P as PlainObject, a as Primitive } from './types-ANR2ETqw.mjs';
  2. declare function is(value: unknown): TypeName;
  3. declare namespace is {
  4. export var array: (arg: any) => arg is any[];
  5. export var arrayOf: (target: unknown[], predicate: (v: unknown) => boolean) => boolean;
  6. export var asyncGeneratorFunction: (value: unknown) => value is (...arguments_: any[]) => Promise<unknown>;
  7. export var asyncFunction: (value: unknown) => value is Function;
  8. export var bigint: (value: unknown) => value is bigint;
  9. export var boolean: (value: unknown) => value is boolean;
  10. export var date: (value: unknown) => value is Date;
  11. export var defined: (value: unknown) => boolean;
  12. export var domElement: (value: unknown) => value is HTMLElement;
  13. export var empty: (value: unknown) => boolean;
  14. export var error: (value: unknown) => value is Error;
  15. var _a: (value: unknown) => value is Function;
  16. export var generator: (value: unknown) => value is Generator<unknown, any, unknown>;
  17. export var generatorFunction: (value: unknown) => value is GeneratorFunction;
  18. export var instanceOf: <T>(instance: unknown, class_: Class<T>) => instance is T;
  19. export var iterable: (value: unknown) => value is IterableIterator<unknown>;
  20. export var map: (value: unknown) => value is Map<unknown, unknown>;
  21. export var nan: (value: unknown) => boolean;
  22. var _b: (value: unknown) => value is null;
  23. export var nullOrUndefined: (value: unknown) => value is null | undefined;
  24. export var number: (value: unknown) => value is number;
  25. export var numericString: (value: unknown) => value is string;
  26. export var object: (value: unknown) => value is object;
  27. export var oneOf: (target: unknown[], value: any) => boolean;
  28. export var plainFunction: (value: unknown) => value is Function;
  29. export var plainObject: (value: unknown) => value is PlainObject;
  30. export var primitive: (value: unknown) => value is Primitive;
  31. export var promise: (value: unknown) => value is Promise<unknown>;
  32. export var propertyOf: (target: PlainObject, key: string, predicate?: ((v: unknown) => boolean) | undefined) => boolean;
  33. export var regexp: (value: unknown) => value is RegExp;
  34. export var set: (value: unknown) => value is Set<PlainObject>;
  35. export var string: (value: unknown) => value is string;
  36. export var symbol: (value: unknown) => value is symbol;
  37. export var undefined: (value: unknown) => value is undefined;
  38. export var weakMap: (value: unknown) => value is WeakMap<PlainObject, unknown>;
  39. export var weakSet: (value: unknown) => value is WeakSet<PlainObject>;
  40. export { _a as function, _b as null };
  41. }
  42. export { is as default };