From cee689fc2cb2672f1b3fc401447772f988767938 Mon Sep 17 00:00:00 2001 From: Paul Fasola Date: Sun, 18 Feb 2018 16:32:51 +0100 Subject: [PATCH] Adjusts some types --- types/react-twitter-auth/index.d.ts | 7 +++---- types/react-twitter-auth/react-twitter-auth-tests.tsx | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/types/react-twitter-auth/index.d.ts b/types/react-twitter-auth/index.d.ts index d9883de45e..58684d5350 100644 --- a/types/react-twitter-auth/index.d.ts +++ b/types/react-twitter-auth/index.d.ts @@ -5,19 +5,18 @@ // TypeScript Version: 2.6 interface TwitterLoginProp { - tag?: string; + tag?: React.ReactType; text?: string; loginUrl: string; requestTokenUrl: string; onFailure: (msg: string) => void; onSuccess: (response: string) => void; disabled?: boolean; - style?: string; - className?: string; + style?: React.CSSProperties; dialogWidth?: number; dialogHeight?: number; showIcon?: boolean; - credentials?: string; + credentials?: "omit" | "same-origin" | "include"; } declare var TwitterLogin: React.StatelessComponent; diff --git a/types/react-twitter-auth/react-twitter-auth-tests.tsx b/types/react-twitter-auth/react-twitter-auth-tests.tsx index a1d212a726..3bb1e8812d 100644 --- a/types/react-twitter-auth/react-twitter-auth-tests.tsx +++ b/types/react-twitter-auth/react-twitter-auth-tests.tsx @@ -12,12 +12,11 @@ const ReactTwitterAuth: React.StatelessComponent = () => { requestTokenUrl="http://server.url/api/v1/auth/twitter/reverse" dialogWidth={ 1200 } dialogHeight={ 800 } - style={ "font-size: 14px;" } + style={{display: "initial"}} disabled={ false } text={ "test" } - tag={ "test" } - className={ "test" } - credentials={ "same-origin" } + tag="button" + credentials="same-origin" showIcon={true}/> ); };