util.d.ts 650 B

123456789101112
  1. import type { NodeFsaContext } from './types';
  2. export { basename } from '@jsonjoy.com/fs-node-utils';
  3. /**
  4. * Creates a new {@link NodeFsaContext}.
  5. */
  6. export declare const ctx: (partial?: Partial<NodeFsaContext>) => NodeFsaContext;
  7. export declare const assertName: (name: string, method: string, klass: string) => void;
  8. export declare const assertCanWrite: (mode: "read" | "readwrite") => void;
  9. export declare const newNotFoundError: () => DOMException;
  10. export declare const newTypeMismatchError: () => DOMException;
  11. export declare const newNotAllowedError: () => DOMException;
  12. export declare const newNoModificationAllowedError: () => DOMException;