mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 21:12:38 +08:00
Adjusts some types
This commit is contained in:
7
types/react-twitter-auth/index.d.ts
vendored
7
types/react-twitter-auth/index.d.ts
vendored
@@ -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<TwitterLoginProp>;
|
||||
|
||||
@@ -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}/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user