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

0.14.27 • Public • Published

Installation

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

Summary

This package contains type definitions for 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

import { Mixin } from "create-react-class";

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

Credits

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

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

76,750

Version

0.14.27

License

MIT

Unpacked Size

4.49 kB

Total Files

5

Last publish

Collaborators

  • types