Create react-holder.d.ts

This commit is contained in:
Isman Usoh
2016-02-21 02:04:12 +07:00
parent 95433230a9
commit bb5fd590c3

34
react-holder/react-holder.d.ts vendored Normal file
View File

@@ -0,0 +1,34 @@
// Type definitions for react-holder 1.0.0
// Project: https://github.com/Moeriki/react-holder
// Definitions by: Isman Usoh <https://github.com/isman-usoh>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
///<reference path="../react/react.d.ts"/>
declare module "react-holder" {
import React = __React;
interface ReactHolderProp extends React.HTMLProps<ReactHolder> {
width: string | number;
height: string | number;
updateOnResize: boolean;
// config args
theme?: string;
random?: boolean;
bg?: string
fg?: string;
text?: string;
size?: number;
font?: string;
align?: string;
outline?: boolean;
lineWrap?: number;
}
class ReactHolder extends React.Component<ReactHolderProp, any> {
}
export default ReactHolder;
}