Skip to content

Commit 81491cd

Browse files
committed
fixed typings file
1 parent b367b22 commit 81491cd

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

index.d.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
interface R {
2-
data(...args: any[]): R;
3-
call(_opts?: R.Options): Promise<object>;
4-
callSync(_opts?: R.Options): object;
5-
}
6-
declare namespace R {
1+
declare module '@fridgerator/r-script' {
72
interface Options {
8-
[key: string]: any;
3+
[key: string]: any
4+
}
5+
6+
export class R {
7+
constructor(path: string, env?: Options);
8+
data (...args: any[]): R;
9+
call (_opts?: Options): Promise<object>;
10+
callSync (_opts?: Options): object | undefined;
911
}
1012
}
11-
export = R;

0 commit comments

Comments
 (0)