Skip to content

Commit

Permalink
fixed typings file
Browse files Browse the repository at this point in the history
  • Loading branch information
fridgerator committed Jul 17, 2019
1 parent b367b22 commit 81491cd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
interface R {
data(...args: any[]): R;
call(_opts?: R.Options): Promise<object>;
callSync(_opts?: R.Options): object;
}
declare namespace R {
declare module '@fridgerator/r-script' {
interface Options {
[key: string]: any;
[key: string]: any
}

export class R {
constructor(path: string, env?: Options);
data (...args: any[]): R;
call (_opts?: Options): Promise<object>;
callSync (_opts?: Options): object | undefined;
}
}
export = R;

0 comments on commit 81491cd

Please sign in to comment.