legal-markdown-js
Version:
Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version
61 lines • 1.92 kB
TypeScript
/**
* Browser shims for Node.js modules
*
* These are minimal implementations to satisfy imports
* in browser environments. Most functionality is stubbed
* since file system operations don't apply in browsers.
*/
export declare const existsSync: () => boolean;
export declare const readFileSync: () => string;
export declare const writeFileSync: () => void;
export declare const mkdirSync: () => void;
export declare const readdirSync: () => never[];
export declare const statSync: () => {
isFile: () => boolean;
isDirectory: () => boolean;
};
export declare const copyFileSync: () => void;
export declare const unlinkSync: () => void;
export declare const renameSync: () => void;
export declare const promises: {
readFile: () => Promise<string>;
writeFile: () => Promise<void>;
mkdir: () => Promise<void>;
readdir: () => Promise<never[]>;
stat: () => Promise<{
isFile: () => boolean;
isDirectory: () => boolean;
}>;
copyFile: () => Promise<void>;
unlink: () => Promise<void>;
rename: () => Promise<void>;
};
declare const _default: {
existsSync: () => boolean;
readFileSync: () => string;
writeFileSync: () => void;
mkdirSync: () => void;
readdirSync: () => never[];
statSync: () => {
isFile: () => boolean;
isDirectory: () => boolean;
};
copyFileSync: () => void;
unlinkSync: () => void;
renameSync: () => void;
promises: {
readFile: () => Promise<string>;
writeFile: () => Promise<void>;
mkdir: () => Promise<void>;
readdir: () => Promise<never[]>;
stat: () => Promise<{
isFile: () => boolean;
isDirectory: () => boolean;
}>;
copyFile: () => Promise<void>;
unlink: () => Promise<void>;
rename: () => Promise<void>;
};
};
export default _default;
//# sourceMappingURL=browser-shims.d.ts.map