Installation
npm install --save @types/react-twitter-auth
Summary
This package contains type definitions for react-twitter-auth (https://github.com/GenFirst/react-twitter-auth).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-twitter-auth.
index.d.ts
interface TwitterLoginProps {
tag?: React.ElementType | undefined;
text?: string | undefined;
loginUrl: string;
requestTokenUrl: string;
onFailure: (msg: string) => void;
onSuccess: (response: string) => void;
disabled?: boolean | undefined;
style?: React.CSSProperties | undefined;
dialogWidth?: number | undefined;
dialogHeight?: number | undefined;
showIcon?: boolean | undefined;
credentials?: "omit" | "same-origin" | "include" | undefined;
customHeaders?: HeadersInit | undefined;
children?: React.ReactNode | undefined;
forceLogin?: boolean | undefined;
}
declare var TwitterLogin: React.FunctionComponent<TwitterLoginProps>;
export default TwitterLogin;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Paul Fasola, and Dmytro Savchenko.