diff --git a/react-onsenui/index.d.ts b/react-onsenui/index.d.ts index 6a0d30f102..43f02ed41f 100644 --- a/react-onsenui/index.d.ts +++ b/react-onsenui/index.d.ts @@ -7,9 +7,9 @@ import { Component } from 'react'; -export as namespace ReactOnSenUI; -export namespace ReactOnSenUI { + +declare namespace ReactOnSenUI { interface Modifiers_string { default?: string, @@ -373,4 +373,7 @@ export namespace ReactOnSenUI { }, any>{ } -} \ No newline at end of file +} + +export = ReactOnSenUI; + diff --git a/react-onsenui/react-onsenui-tests.tsx b/react-onsenui/react-onsenui-tests.tsx index 4c804023f4..0621f9639a 100644 --- a/react-onsenui/react-onsenui-tests.tsx +++ b/react-onsenui/react-onsenui-tests.tsx @@ -1,6 +1,6 @@ -import {Component} from "react"; +import * as React from "react"; import * as ReactDOM from "react-dom"; -import * as Ons from "react-onsenui"; +import {SplitterSide, Splitter, SplitterContent, Page} from "react-onsenui"; class AppState{ isOpen:boolean=false; @@ -9,7 +9,7 @@ class AppState{ interface AppProps{ } -export class App extends Component{ +export class App extends React.Component{ constructor(props?:AppProps){ super(props); @@ -23,23 +23,23 @@ export class App extends Component{ render() { return ( - - + this.hide()} isSwipeable={true}> - + Menu content - - - - + + + + Test page - - - + + + ); } diff --git a/react-onsenui/tsconfig.json b/react-onsenui/tsconfig.json index 4b4afac206..4cf66b7107 100644 --- a/react-onsenui/tsconfig.json +++ b/react-onsenui/tsconfig.json @@ -15,7 +15,8 @@ "lib": [ "es6", "dom" - ] + ], + "types": [] }, "files": [ "index.d.ts",