util.d.ts 590 B

1234567891011
  1. import { TDataOut } from '../encoding';
  2. export declare const isWin: boolean;
  3. type TData = TDataOut | ArrayBufferView | DataView;
  4. export declare const unixify: (filepath: string, stripTrailing?: boolean) => string;
  5. type TResolve = (filename: string, base?: string) => string;
  6. declare let resolve: TResolve;
  7. export { resolve };
  8. export declare const filenameToSteps: (filename: string, base?: string) => string[];
  9. export declare function isFd(path: any): boolean;
  10. export declare function validateFd(fd: any): void;
  11. export declare function dataToBuffer(data: TData, encoding?: string): Buffer;