npm.io
0.9.4 • Published 2 years ago

@types/react-google-login-component

Licence
MIT
Version
0.9.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0

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 1922 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Konstantin Lebedev.