utils.d.ts 881 B

123456789101112131415
  1. import type { DefaultEncoder, Format } from "./types.js";
  2. export declare let has: (obj: object, key: PropertyKey) => boolean;
  3. export declare function merge(target: any, source: any, options?: {
  4. plainObjects?: boolean;
  5. allowPrototypes?: boolean;
  6. }): any;
  7. export declare function assign_single_source(target: any, source: any): any;
  8. export declare function decode(str: string, _: any, charset: string): string;
  9. export declare const encode: (str: any, defaultEncoder: DefaultEncoder, charset: string, type: 'key' | 'value', format: Format) => string;
  10. export declare function compact(value: any): any;
  11. export declare function is_regexp(obj: any): boolean;
  12. export declare function is_buffer(obj: any): boolean;
  13. export declare function combine(a: any, b: any): never[];
  14. export declare function maybe_map<T>(val: T[], fn: (v: T) => T): T | T[];
  15. //# sourceMappingURL=utils.d.ts.map