mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
added tests and typings for mobservable and mobservable-react packages
This commit is contained in:
16
mobservable-react/mobservable-react.d.ts
vendored
Normal file
16
mobservable-react/mobservable-react.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Type definitions for mobservable v0.1.8
|
||||
// Project: https://github.com/mweststrate/mobservable-react
|
||||
// Definitions by: Michel Weststrate <https://github.com/mweststrate/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../react/react-global.d.ts" />
|
||||
|
||||
declare module "mobservable-react" {
|
||||
/**
|
||||
* Turns a React component or stateless render function into a reactive component.
|
||||
*/
|
||||
export function reactiveComponent<P>(clazz: React.ClassicComponentClass<P>): React.ClassicComponentClass<P>;
|
||||
export function reactiveComponent<P>(clazz: React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
export function reactiveComponent<P>(clazz: React.ComponentClass<P>): void; // for decorator
|
||||
export function reactiveComponent<P>(renderFunction: (props: P) => React.ReactElement<any>): React.ClassicComponentClass<P>;
|
||||
}
|
||||
Reference in New Issue
Block a user