utils.d.ts 813 B

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