mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Added FBResponseObject definition
This commit is contained in:
6
fbsdk/fbsdk.d.ts
vendored
6
fbsdk/fbsdk.d.ts
vendored
@@ -149,13 +149,17 @@ interface FBSDKCanvas{
|
||||
stopTimer(handler?: (fbResponseObject : Object) => any) : void;
|
||||
}
|
||||
|
||||
interface FBResponseObject {
|
||||
error: any;
|
||||
}
|
||||
|
||||
interface FBSDK{
|
||||
/* This method is used to initialize and setup the SDK. */
|
||||
init(fbInitObject : FBInitParams) : void;
|
||||
|
||||
/* This method lets you make calls to the Graph API. */
|
||||
api(path : string, method : string, callback : (fbResponseObject : Object) => any) : Object;
|
||||
api(path : string, params : Object, callback : (fbResponseObject : Object) => any) : Object;
|
||||
api(path : string, params : Object, callback : (fbResponseObject : FBResponseObject) => any) : Object;
|
||||
api(path : string, method : string, params : Object, callback : (fbResponseObject : Object) => any) : Object;
|
||||
|
||||
/* This method is used to trigger different forms of Facebook created UI dialogs. */
|
||||
|
||||
Reference in New Issue
Block a user