util.d.ts 599 B

1234567891011
  1. import type { NodeFsaContext } from './types';
  2. /**
  3. * Creates a new {@link NodeFsaContext}.
  4. */
  5. export declare const ctx: (partial?: Partial<NodeFsaContext>) => NodeFsaContext;
  6. export declare const basename: (path: string, separator: string) => string;
  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;