mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
uploads - moved logic to FE because of plugins
This commit is contained in:
30
packages/types/extensions.d.ts
vendored
Normal file
30
packages/types/extensions.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface FileFormatDefinition {
|
||||
storageType: string;
|
||||
extension: string;
|
||||
name: string;
|
||||
readerFunc?: string;
|
||||
writerFunc?: string;
|
||||
args?: any[];
|
||||
addFilesToSourceList?: (
|
||||
file: {
|
||||
full: string;
|
||||
},
|
||||
newSources: string[],
|
||||
newValues: {
|
||||
[key: string]: any;
|
||||
}
|
||||
) => void;
|
||||
getDefaultOutputName?: (sourceName, values) => string;
|
||||
getOutputParams?: (sourceName, values) => any;
|
||||
}
|
||||
|
||||
export interface PluginDefinition {
|
||||
packageName: string;
|
||||
manifest: any;
|
||||
content: any;
|
||||
}
|
||||
|
||||
export interface ExtensionsDirectory {
|
||||
plugins: PluginDefinition[];
|
||||
fileFormats: FileFormatDefinition[];
|
||||
}
|
||||
Reference in New Issue
Block a user