From 65d2259cfae48b321e22389f103737184a11bffb Mon Sep 17 00:00:00 2001 From: Jan Karres Date: Wed, 17 May 2017 16:18:57 +0200 Subject: [PATCH 1/2] Update react-facebook-login fir v3.6.0 --- types/react-facebook-login/index.d.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/types/react-facebook-login/index.d.ts b/types/react-facebook-login/index.d.ts index 9f83d7ae8b..44fa9d40ae 100644 --- a/types/react-facebook-login/index.d.ts +++ b/types/react-facebook-login/index.d.ts @@ -1,8 +1,8 @@ -// Type definitions for react-facebook-login 3.4 +// Type definitions for react-facebook-login 3.6 // Project: https://github.com/keppelen/react-facebook-login -// Definitions by: Alexandre Paré +// Definitions by: Alexandre Paré , Jan Karres // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 +// TypeScript Version: 2.3 import * as React from "react"; @@ -30,6 +30,8 @@ declare namespace ReactFacebookLogin { typeButton?: string; version?: string; xfbml?: boolean; + isMobile?: boolean; + tag?: Node | Function; } interface ReactFacebookLoginInfo { @@ -43,6 +45,6 @@ declare namespace ReactFacebookLogin { } } -declare class ReactFacebookLogin extends React.Component {} +declare class ReactFacebookLogin extends React.Component { } -export = ReactFacebookLogin; +export default ReactFacebookLogin; From dcab77774c502fbb326e62833d234e76555f9f75 Mon Sep 17 00:00:00 2001 From: Jan Karres Date: Wed, 17 May 2017 19:03:06 +0200 Subject: [PATCH 2/2] Update react-facebook-login for v3.6.0 fix lint tests --- types/react-facebook-login/index.d.ts | 73 +++++++++++++-------------- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/types/react-facebook-login/index.d.ts b/types/react-facebook-login/index.d.ts index 44fa9d40ae..b5bfebac5d 100644 --- a/types/react-facebook-login/index.d.ts +++ b/types/react-facebook-login/index.d.ts @@ -2,49 +2,46 @@ // Project: https://github.com/keppelen/react-facebook-login // Definitions by: Alexandre Paré , Jan Karres // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 import * as React from "react"; -declare namespace ReactFacebookLogin { - interface ReactFacebookLoginProps { - appId: string; - callback(userInfo: ReactFacebookLoginInfo): void; +interface ReactFacebookLoginProps { + appId: string; + callback(userInfo: ReactFacebookLoginInfo): void; - autoLoad?: boolean; - buttonStyle?: React.CSSProperties; - containerStyle?: React.CSSProperties; - cookie?: boolean; - cssClass?: string; - disableMobileRedirect?: boolean; - fields?: string; - icon?: string | React.ReactNode; - isDisabled?: boolean; - language?: string; - onClick?(): void; - reAuthenticate?: boolean; - redirectUri?: string; - scope?: string; - size?: "small" | "medium" | "metro"; - textButton?: string; - typeButton?: string; - version?: string; - xfbml?: boolean; - isMobile?: boolean; - tag?: Node | Function; - } - - interface ReactFacebookLoginInfo { - id: string; - name: string; - } - - interface ReactFacebookLoginState { - isSdkLoaded?: boolean; - isProcessing?: boolean; - } + autoLoad?: boolean; + buttonStyle?: React.CSSProperties; + containerStyle?: React.CSSProperties; + cookie?: boolean; + cssClass?: string; + disableMobileRedirect?: boolean; + fields?: string; + icon?: string | React.ReactNode; + isDisabled?: boolean; + language?: string; + onClick?(): void; + reAuthenticate?: boolean; + redirectUri?: string; + scope?: string; + size?: "small" | "medium" | "metro"; + textButton?: string; + typeButton?: string; + version?: string; + xfbml?: boolean; + isMobile?: boolean; + tag?: Node | React.Component; } -declare class ReactFacebookLogin extends React.Component { } +export interface ReactFacebookLoginInfo { + id: string; + name: string; +} + +interface ReactFacebookLoginState { + isSdkLoaded?: boolean; + isProcessing?: boolean; +} + +declare class ReactFacebookLogin extends React.Component { } export default ReactFacebookLogin;