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

    0.14.22 • Public • Published

    Installation

    npm install --save @types/react-addons-linked-state-mixin

    Summary

    This package contains type definitions for React (react-addons-linked-state-mixin) (http://facebook.github.io/react/).

    Details

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

    index.d.ts

    // Type definitions for React (react-addons-linked-state-mixin) 0.14
    // Project: http://facebook.github.io/react/
    // Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    import { Mixin } from 'react';
    
    declare var LinkedStateMixin: LinkedStateMixin.LinkedStateMixin;
    type LinkedStateMixin = LinkedStateMixin.LinkedStateMixin;
    export = LinkedStateMixin;
    
    declare namespace LinkedStateMixin {
        export interface ReactLink<T> {
            value: T;
            requestChange(newValue: T): void;
        }
    
        export interface LinkedStateMixin extends Mixin<any, any> {
            linkState<T>(key: string): ReactLink<T>;
        }
    }
    
    declare module 'react' {
        interface HTMLAttributes<T> {
            checkedLink?: LinkedStateMixin.ReactLink<boolean> | undefined;
            valueLink?: LinkedStateMixin.ReactLink<boolean | string | number> | undefined;
        }
    }

    Additional Details

    • Last updated: Wed, 07 Jul 2021 17:02:53 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Asana, AssureSign, and Microsoft.

    Keywords

    none

    Install

    npm i @types/react-addons-linked-state-mixin

    DownloadsWeekly Downloads

    84,728

    Version

    0.14.22

    License

    MIT

    Unpacked Size

    5.03 kB

    Total Files

    4

    Last publish

    Collaborators

    • types