forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-mixin.d.ts
27 lines (20 loc) · 843 Bytes
/
react-mixin.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Type definitions for react-mixin 2.0.2
// Project: https://github.com/brigand/react-mixin
// Definitions by: Qubo <https://github.com/tkqubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
declare module "react-mixin" {
import * as React from 'react';
namespace reactMixin {
export interface ClassDecorator {
<TFunction extends Function>(target: TFunction): TFunction|void;
}
interface ReactMixin {
decorate(mixin: React.Mixin<any, any>): ClassDecorator;
onClass<S>(clazz: any, mixin: React.Mixin<any, any>): React.ComponentClass<S>;
<S>(clazz: any, mixin: React.Mixin<any, any>): React.ComponentClass<S>;
}
}
var reactMixin: reactMixin.ReactMixin;
export = reactMixin;
}