Skip to content

Commit 1c999de

Browse files
shibulijackshibulijack
shibulijack
authored and
shibulijack
committed
Updated overrides
1 parent 3d1933b commit 1c999de

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/fb.d.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ interface FBResponseObject {
3636
export class Facebook {
3737
constructor(options?: FBOptions);
3838

39-
api(path: string): Promise<any>;
40-
41-
api(path: string, method: string): Promise<any>;
42-
4339
api(path: string, params: any): Promise<any>;
4440

45-
api(path: string, method: string, params: any): Promise<any>;
41+
api(path: string, method?: string, params: any): Promise<any>;
4642

4743
extend(options: FBOptions): Facebook;
4844

@@ -54,13 +50,9 @@ export class Facebook {
5450

5551
getLoginUrl(options: FBOptions): string;
5652

57-
napi(path: string): void;
58-
59-
napi(path: string, method: string): void;
60-
6153
napi(path: string, params: any): void;
6254

63-
napi(path: string, method: string, params: any): void;
55+
napi(path: string, method?: string, params: any): void;
6456

6557
options(): FBOptions;
6658

0 commit comments

Comments
 (0)