mono/packages/fs/dist/file.d.ts
2025-01-23 07:22:43 +01:00

10 lines
451 B
TypeScript

export interface IOptions {
content: string | Buffer | object | Array<any>;
jsonIndent: number;
mode: string;
}
export declare function validateInput(methodName: string, path: string, options?: IOptions): void;
export declare function defaults(passedCriteria: IOptions | null): IOptions;
export declare function sync(path: string, options: IOptions): void;
export declare function async(path: string, options: IOptions): Promise<unknown>;