electron-edge-js
Version:
Edge.js: run .NET and Node.js in-process on Electron
25 lines (22 loc) • 799 B
TypeScript
declare module 'electron-edge-js' {
function func<TInput, TOutput>(params: string | Function | Params | Source | TSQL): Func<TInput, TOutput>
function func<TInput, TOutput>(language: string, params: string | Function | Params | Source | TSQL): Func<TInput, TOutput>
interface Params {
assemblyFile: string
typeName?: string
methodName?: string
}
interface Source {
source: string | Function
references?: string[]
}
interface TSQL {
source: string
connectionString?: string
commandTimeout?: number
}
interface Func<TInput, TOutput> {
(payload: TInput, callback: (error: Error, result: TOutput) => void): void;
(payload: TInput, sync: true): TOutput;
}
}