smartfile/dist/smartfile.memory.d.ts

27 lines
875 B
TypeScript
Raw Normal View History

2016-09-20 15:56:49 +00:00
import 'typings-global';
2017-05-26 12:47:41 +00:00
import { Smartfile } from './smartfile.classes.smartfile';
2016-05-01 21:19:54 +00:00
/**
* converts file to Object
* @param fileStringArg
* @param fileTypeArg
* @returns {any|any}
*/
export declare let toObject: (fileStringArg: string, fileTypeArg: string) => any;
2017-05-26 12:47:41 +00:00
export interface IToFsOptions {
respectRelative?: boolean;
}
2016-05-01 21:19:54 +00:00
/**
2017-08-02 11:10:30 +00:00
* writes string or Smartfile to disk.
2016-05-01 21:19:54 +00:00
* @param fileArg
* @param fileNameArg
* @param fileBaseArg
*/
2017-05-26 12:47:41 +00:00
export declare let toFs: (fileContentArg: string | Smartfile, filePathArg: any, optionsArg?: IToFsOptions) => Promise<{}>;
/**
* writes a string or a Smartfile to disk synchronously, only supports string
* @param fileArg
* @param filePathArg
*/
export declare let toFsSync: (fileArg: string, filePathArg: string) => void;
export declare let smartfileArrayToFs: (smartfileArrayArg: Smartfile[], dirArg: string) => Promise<void>;