DefinitelyTyped/types/react-twitter-auth/index.d.ts
Dmitriy Savchenko 686d449242 [react-twitter-auth] update types (#27680)
* Add missing props

* Add more tests

* Update types version

* Fix specified type version for package

* Fix specified version
2018-08-06 11:35:26 -07:00

29 lines
925 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>
// Dmytro Savchenko <https://github.com/loginwashere>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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";
customHeaders?: HeadersInit;
children?: React.ReactNode;
forceLogin?: boolean;
}
declare var TwitterLogin: React.StatelessComponent<TwitterLoginProps>;
export default TwitterLogin;