NeXTSTEP Programming Mastermind

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

    0.9.1 • 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

    // 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.

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    202

    Version

    0.9.1

    License

    MIT

    Unpacked Size

    4.49 kB

    Total Files

    4

    Last publish

    Collaborators

    • types