2021-10-15 09:31:13 +00:00
|
|
|
/**
|
|
|
|
* This module was automatically generated by `ts-interface-builder`
|
|
|
|
*/
|
2020-07-21 13:20:51 +00:00
|
|
|
import * as t from "ts-interface-checker";
|
|
|
|
// tslint:disable:object-literal-key-quotes
|
|
|
|
|
|
|
|
export const EditOptionsAPI = t.iface([], {
|
|
|
|
"getParseOptions": t.func("ParseOptions", t.param("parseOptions", "ParseOptions", true)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export const ParseFileAPI = t.iface([], {
|
|
|
|
"parseFile": t.func("ParseFileResult", t.param("file", "FileSource"), t.param("parseOptions", "ParseOptions", true)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export const ParseOptions = t.iface([], {
|
|
|
|
"NUM_ROWS": t.opt("number"),
|
|
|
|
"SCHEMA": t.opt(t.array("ParseOptionSchema")),
|
2023-08-18 21:03:27 +00:00
|
|
|
"WARNING": t.opt("string"),
|
2020-07-21 13:20:51 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export const ParseOptionSchema = t.iface([], {
|
|
|
|
"name": "string",
|
|
|
|
"label": "string",
|
|
|
|
"type": "string",
|
|
|
|
"visible": "boolean",
|
|
|
|
});
|
|
|
|
|
|
|
|
export const FileSource = t.iface([], {
|
|
|
|
"path": "string",
|
|
|
|
"origName": "string",
|
|
|
|
});
|
|
|
|
|
|
|
|
export const ParseFileResult = t.iface(["GristTables"], {
|
|
|
|
"parseOptions": "ParseOptions",
|
|
|
|
});
|
|
|
|
|
|
|
|
const exportedTypeSuite: t.ITypeSuite = {
|
|
|
|
EditOptionsAPI,
|
|
|
|
ParseFileAPI,
|
|
|
|
ParseOptions,
|
|
|
|
ParseOptionSchema,
|
|
|
|
FileSource,
|
|
|
|
ParseFileResult,
|
|
|
|
};
|
|
|
|
export default exportedTypeSuite;
|