-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
edge-js.d.ts
25 lines (22 loc) · 767 Bytes
/
edge-js.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
declare module '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;
}
}