smartfile/dist/smartfile.classes.smartfile.d.ts

17 lines
422 B
TypeScript
Raw Normal View History

/// <reference types="node" />
export interface ISmartfileConstructorOptions {
path?: string;
contentsString?: string;
contentBuffer?: Buffer;
}
export declare class Smartfile {
path: string;
contents: Buffer;
constructor(optionsArg: ISmartfileConstructorOptions);
/**
* set contents from string
* @param contentString
*/
setContentFromString(contentString: string): void;
}