0.9.4 • Published 4 months ago
@types/react-google-login-component v0.9.4
Installation
npm install --save @types/react-google-login-component
Summary
This package contains type definitions for react-google-login-component (https://github.com/kennetpostigo/react-google-login-component).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-google-login-component.
index.d.ts
// Type definitions for react-google-login-component 0.9
// Project: https://github.com/kennetpostigo/react-google-login-component
// Definitions by: Konstantin Lebedev <https://github.com/koss-lebedev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
export interface GoogleLoginInfo {
getAuthResponse: () => {
access_token: string;
};
}
export interface GoogleLoginProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
socialId: string;
scope?: string | undefined;
fetchBasicProfile?: boolean | undefined;
buttonText?: string | undefined;
prompt?: string | undefined;
responseHandler: (response: GoogleLoginInfo) => void;
}
export class GoogleLogin extends React.Component<GoogleLoginProps> {}
Additional Details
- Last updated: Thu, 08 Jul 2021 20:20:44 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Konstantin Lebedev.