util.d.mts 418 B

12345678
  1. export declare const ensureArray: <T>(value: T | T[]) => T[];
  2. export declare const readJSON: <T>(path: string) => Promise<T>;
  3. export declare const writeJSON: (path: string, value: unknown) => Promise<void>;
  4. /**
  5. * Applies the "replacer" function to primitive keys and properties of the object,
  6. * mutating it in-place.
  7. */
  8. export declare const mutateObjectPrimitives: (obj: any, replacer: (value: any) => any) => any;