版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
1234567891011121314151617181920
  1. import { Nullable, Arrayable } from './types.js';
  2. declare function assertTypes(value: unknown, name: string, types: string[]): void;
  3. declare function slash(path: string): string;
  4. declare function parseRegexp(input: string): RegExp;
  5. declare function toArray<T>(array?: Nullable<Arrayable<T>>): Array<T>;
  6. declare function isObject(item: unknown): boolean;
  7. declare function getType(value: unknown): string;
  8. declare function getOwnProperties(obj: any): (string | symbol)[];
  9. declare function deepClone<T>(val: T): T;
  10. declare function clone<T>(val: T, seen: WeakMap<any, any>): T;
  11. declare function noop(): void;
  12. declare function objectAttr(source: any, path: string, defaultValue?: undefined): any;
  13. type DeferPromise<T> = Promise<T> & {
  14. resolve: (value: T | PromiseLike<T>) => void;
  15. reject: (reason?: any) => void;
  16. };
  17. declare function createDefer<T>(): DeferPromise<T>;
  18. export { assertTypes, clone, createDefer, deepClone, getOwnProperties, getType, isObject, noop, objectAttr, parseRegexp, slash, toArray };