mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Create react-holder.d.ts
This commit is contained in:
34
react-holder/react-holder.d.ts
vendored
Normal file
34
react-holder/react-holder.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user