mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
764 B
TypeScript
25 lines
764 B
TypeScript
// Type definitions for react-twitter-auth 0.0
|
|
// Project: https://github.com/GenFirst/react-twitter-auth
|
|
// Definitions by: Paul Fasola <https://github.com/paulfasola>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.6
|
|
|
|
interface TwitterLoginProps {
|
|
tag?: React.ReactType;
|
|
text?: string;
|
|
loginUrl: string;
|
|
requestTokenUrl: string;
|
|
onFailure: (msg: string) => void;
|
|
onSuccess: (response: string) => void;
|
|
disabled?: boolean;
|
|
style?: React.CSSProperties;
|
|
dialogWidth?: number;
|
|
dialogHeight?: number;
|
|
showIcon?: boolean;
|
|
credentials?: "omit" | "same-origin" | "include";
|
|
}
|
|
|
|
declare var TwitterLogin: React.StatelessComponent<TwitterLoginProps>;
|
|
|
|
export default TwitterLogin;
|