Skip to content

Commit

Permalink
update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgerator committed Sep 19, 2019
1 parent 26d1393 commit 5f4d635
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ declare module '@fridgerator/pynode' {
* let x = pynode.call('add', 1, 2)
* x === 3 // true
*/
export function call(functionName: string, ...args: any[]): any;
export function call(functionName: string, ...args: any[], callback: (err: any, result: any) => void): void;
namespace call {
function __promisify__(functionName: string, ...args: any[]): Promise<any>;
}

/**
* Pass a string directly to the python interpreter.
Expand Down

0 comments on commit 5f4d635

Please sign in to comment.