Created
October 17, 2016 08:08
-
-
Save mcku/8c0ba434ee44b348a31da1835574b60d to your computer and use it in GitHub Desktop.
a quick TS type definition for react-onsenui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by typings | |
// Source: src/vendor/react-onsenui.d.ts | |
declare module "react-onsenui" { | |
export default Ons; | |
namespace Ons { | |
import React = __React; | |
// <Icon /> | |
type Modifier = 'material'|'default'; | |
interface IconProps extends React.HTMLProps<Icon> { | |
modifier?: Modifier; | |
icon?: string; | |
size?: number; | |
rotate?: number; | |
fixedWidth?: boolean; | |
spin?: boolean; | |
} | |
type Icon = React.Component<IconProps, {}>; | |
var Icon: React.ComponentClass<IconProps>; | |
interface ModalProps extends React.HTMLProps<Modal> { | |
isOpen?: boolean; | |
} | |
type Modal = React.Component<ModalProps, {}>; | |
var Modal: React.ComponentClass<ModalProps>; | |
interface PageProps extends React.HTMLProps<Page> { | |
} | |
type Page = React.Component<PageProps, {}>; | |
var Page: React.ComponentClass<PageProps>; | |
interface ButtonProps extends React.HTMLProps<Button> { | |
} | |
type Button = React.Component<ButtonProps, {}>; | |
var Button: React.ComponentClass<ButtonProps>; | |
interface RowProps extends React.HTMLProps<Row> { | |
} | |
type Row = React.Component<RowProps, {}>; | |
var Row: React.ComponentClass<RowProps>; | |
interface ColProps extends React.HTMLProps<Col> { | |
} | |
type Col = React.Component<ColProps, {}>; | |
var Col: React.ComponentClass<ColProps>; | |
interface BackButtonProps extends React.HTMLProps<BackButton> { | |
} | |
type BackButton = React.Component<BackButtonProps, {}>; | |
var BackButton: React.ComponentClass<BackButtonProps>; | |
interface NavigatorProps extends React.HTMLProps<Navigator> { | |
} | |
type Navigator = React.Component<NavigatorProps, {}>; | |
var Navigator: React.ComponentClass<NavigatorProps>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment