declare module 'edge-js' { function func(params: string | Function | Params | Source | TSQL): Func function func(language: string, params: string | Function | Params | Source | TSQL): Func 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 { (payload: TInput, callback: (error: Error, result: TOutput) => void): void; (payload: TInput, sync: true): TOutput; } }