2020-07-21 13:20:51 +00:00
|
|
|
/**
|
|
|
|
* This module was automatically generated by `ts-interface-builder`
|
|
|
|
*/
|
|
|
|
import * as t from "ts-interface-checker";
|
|
|
|
// tslint:disable:object-literal-key-quotes
|
|
|
|
|
|
|
|
export const PublishedPlugin = t.iface(["BarePlugin"], {
|
|
|
|
"name": "string",
|
|
|
|
"version": "string",
|
|
|
|
});
|
|
|
|
|
|
|
|
export const BarePlugin = t.iface([], {
|
|
|
|
"components": t.iface([], {
|
|
|
|
"safeBrowser": t.opt("string"),
|
|
|
|
"safePython": t.opt("string"),
|
|
|
|
"unsafeNode": t.opt("string"),
|
|
|
|
"deactivate": t.opt(t.iface([], {
|
|
|
|
"inactivitySec": t.opt("number"),
|
|
|
|
})),
|
|
|
|
}),
|
|
|
|
"contributions": t.iface([], {
|
|
|
|
"importSources": t.opt(t.array("ImportSource")),
|
|
|
|
"fileParsers": t.opt(t.array("FileParser")),
|
|
|
|
"customSections": t.opt(t.array("CustomSection")),
|
|
|
|
}),
|
|
|
|
"experimental": t.opt("boolean"),
|
|
|
|
});
|
|
|
|
|
|
|
|
export const ImportSource = t.iface([], {
|
|
|
|
"label": "string",
|
2021-08-05 15:12:46 +00:00
|
|
|
"safeHome": t.opt("boolean"),
|
2020-07-21 13:20:51 +00:00
|
|
|
"importSource": "Implementation",
|
|
|
|
"importProcessor": t.opt("Implementation"),
|
|
|
|
});
|
|
|
|
|
|
|
|
export const FileParser = t.iface([], {
|
|
|
|
"fileExtensions": t.array("string"),
|
|
|
|
"editOptions": t.opt("Implementation"),
|
|
|
|
"parseFile": "Implementation",
|
|
|
|
});
|
|
|
|
|
|
|
|
export const CustomSection = t.iface([], {
|
|
|
|
"path": "string",
|
|
|
|
"name": "string",
|
|
|
|
});
|
|
|
|
|
|
|
|
export const Implementation = t.iface([], {
|
|
|
|
"component": t.union(t.lit("safeBrowser"), t.lit("safePython"), t.lit("unsafeNode")),
|
|
|
|
"name": "string",
|
|
|
|
"path": t.opt("string"),
|
|
|
|
});
|
|
|
|
|
|
|
|
const exportedTypeSuite: t.ITypeSuite = {
|
|
|
|
PublishedPlugin,
|
|
|
|
BarePlugin,
|
|
|
|
ImportSource,
|
|
|
|
FileParser,
|
|
|
|
CustomSection,
|
|
|
|
Implementation,
|
|
|
|
};
|
|
|
|
export default exportedTypeSuite;
|