DefinitelyTyped/types/react-twitter-auth/index.d.ts
2018-02-19 09:29:19 +01:00

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;