dynamicsnode
Version:
Create simple scripts to interact with Dynamics CRM using Node.js
19 lines (18 loc) • 871 B
TypeScript
import { DataTable } from './DataTable';
import { IDataTableSerializer } from './IDataTableSerializer';
/** Default constructor
* @class DataTableSerializer
* @classdesc Utility to load and save DataTable objects to different file formats.
*/
export declare class DataTableSerializer {
/** @lends DataTableSerializer */
static AvailableSerializers: IDataTableSerializer[];
private static getSerializer(extension);
/** Saves the specified datatable object to the specified file.
* @param {dataTable} DataTable Table to save to the specified file.
* @param {fileName} string File path where to save the DataTable object. The path is relative to process.cwd()
*/
static save(dataTable: DataTable, fileName: string): void;
/** The path is relative to process.cwd() */
static load(fileName: string): DataTable;
}