From 29844903a52da1b82ef1ea4ef70c1b6a330f495f Mon Sep 17 00:00:00 2001 From: Adam Burmister Date: Mon, 11 Jan 2016 16:02:27 -0800 Subject: [PATCH] Add overloads for PDK.me --- pinterest-sdk/pinterest-sdk.d.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pinterest-sdk/pinterest-sdk.d.ts b/pinterest-sdk/pinterest-sdk.d.ts index 6c9d48493..a72fe9d89 100644 --- a/pinterest-sdk/pinterest-sdk.d.ts +++ b/pinterest-sdk/pinterest-sdk.d.ts @@ -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