Never Pummel Muskoxen

    @types/react-github-button
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    Installation

    npm install --save @types/react-github-button

    Summary

    This package contains type definitions for react-github-button (https://github.com/benjycui/react-github-button#readme).

    Details

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

    index.d.ts

    // Type definitions for react-github-button 0.1
    // Project: https://github.com/benjycui/react-github-button#readme
    // Definitions by: Ifiok Jr. <https://github.com/ifiokjr>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    import { Component } from 'react';
    
    export interface ReactGitHubButtonProps {
        /**
         * The type of information to display
         */
        type: 'stargazers' | 'watchers' | 'forks';
        /**
         * The size of the button. Leave undefined for default.
         */
        size?: 'large' | undefined;
        /**
         * Your GitHub id or organization name.
         */
        namespace: string;
        /**
         * The name of your repository.
         */
        repo: string;
    }
    
    export default class GitHubButton extends Component<ReactGitHubButtonProps> {}

    Additional Details

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

    Credits

    These definitions were written by Ifiok Jr..

    Keywords

    none

    Install

    npm i @types/react-github-button

    DownloadsWeekly Downloads

    410

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    4.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • types