Skip to content

Commit

Permalink
Fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffkoh committed Aug 31, 2018
1 parent ee61ac9 commit 445b324
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/context.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ interface Context {
invocationId: string;
bindingData: any;
bindings: any;
log(text: any): void;
log: {
(text: string): void;
warn: (text: string) => void;
error: (text: string) => void;
info: (text: string) => void;
verbose: (text: string) => void;
};
done(err?: any, output?: {
[s: string]: any;
}): void;
Expand Down
8 changes: 7 additions & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ interface Context {
bindingData: any;
bindings: any;

log(text: any): void;
log: {
(text: string): void;
warn: (text: string) => void;
error: (text: string) => void;
info: (text: string) => void;
verbose: (text: string) => void;
}

done(err?: any, output?: { [s: string]: any }): void;
}
Expand Down

0 comments on commit 445b324

Please # to comment.