4.1.3 • Published 6 months ago

@types/react-facebook-login-component v4.1.3

Weekly downloads
57
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-facebook-login-component

Summary

This package contains type definitions for react-facebook-login-component (https://github.com/kennetpostigo/react-facebook-login-component).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-facebook-login-component.

index.d.ts

// Type definitions for react-facebook-login-component 4.1
// Project: https://github.com/kennetpostigo/react-facebook-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 FacebookLoginInfo {
    id: string;
    accessToken: string;
    name?: string | undefined;
    email?: string | undefined;
}

export interface FacebookLoginProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
    socialId: string;
    xfbml?: boolean | undefined;
    version?: string | undefined;
    fields?: string | undefined;
    buttonText?: string | undefined;
    responseHandler: (response: FacebookLoginInfo) => void;
}

export class FacebookLogin extends React.Component<FacebookLoginProps> {}

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:20:39 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Konstantin Lebedev.