@types/react-google-login-component
TypeScript icon, indicating that this package has built-in type declarations

0.9.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-google-login-component

Weekly Downloads

298

Version

0.9.4

License

MIT

Unpacked Size

3.87 kB

Total Files

5

Last publish

Collaborators

  • types