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

2.0.37 • Public • Published

Installation

npm install --save @types/react-mixin

Summary

This package contains type definitions for react-mixin (https://github.com/brigand/react-mixin).

Details

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

index.d.ts

/// <reference types="react" />

import { Mixin } from "create-react-class";
import * as React from "react";

declare namespace reactMixin {
    export interface ClassDecorator {
        // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
        <TFunction extends Function>(target: TFunction): TFunction | void;
    }

    interface ReactMixin {
        decorate(mixin: Mixin<any, any>): ClassDecorator;
        onClass<S>(clazz: any, mixin: Mixin<any, any>): React.ComponentClass<S>;
        <S>(clazz: any, mixin: Mixin<any, any>): React.ComponentClass<S>;
    }
}

declare var reactMixin: reactMixin.ReactMixin;

export = reactMixin;

Additional Details

Credits

These definitions were written by Qubo.

/@types/react-mixin/

    Package Sidebar

    Install

    npm i @types/react-mixin

    Weekly Downloads

    477

    Version

    2.0.37

    License

    MIT

    Unpacked Size

    4.05 kB

    Total Files

    5

    Last publish

    Collaborators

    • types