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
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: Tue, 02 Jan 2024 19:35:22 GMT
- Dependencies: @types/react
Credits
These definitions were written by Konstantin Lebedev.