mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Add overloads for PDK.me
This commit is contained in:
1 parent
7c67406676
commit
29844903a5
1 file changed
+14
-1
Vendored
+14
-1
@@ -36,13 +36,26 @@ declare module PDK {
|
||||
session?: OauthSession;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information on the currently authenticated user
|
||||
* @param cb the callback export function to handle the response
|
||||
*/
|
||||
export function me(callback: Function): void;
|
||||
|
||||
/**
|
||||
* Get information on the currently authenticated user
|
||||
* @param path the url path
|
||||
* @param cb the callback export function to handle the response
|
||||
*/
|
||||
export function me(path: string, callback: Function): void;
|
||||
|
||||
/**
|
||||
* Get information on the currently authenticated user
|
||||
* @param path the url path
|
||||
* @param params the parameters for the request
|
||||
* @param cb the callback export function to handle the response
|
||||
*/
|
||||
export function me(path?: string, params?: Object, callback?: Function): void;
|
||||
export function me(path: string, params: Object, callback: Function): void;
|
||||
|
||||
/**
|
||||
* Make an API call to the server
|
||||
|
||||
Reference in new issue
Block a user