npm install --save @zhishinet-types/react-onsenui
This package contains type definitions for React OnSenui (react-onsenui) (https://onsen.io/v2/docs/guide/react/).
Match [email protected] and [email protected]
Files were exported from https://www.github.com/snipking/react-onsenui-types-hotfix
Extends from @types/[email protected]
which files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-onsenui
Add:
- All components add HtmlProps support
ActionSheet
andActionSheetButton
componentList.renderRow
function supportrow
andindex
parameterNavigator.renderPage
function supportroute
andnavigator
parameterToast
componentPullHook
componentSpeedDial
ComponentSpeedDialItem
ComponentCheckbox
ComponentModal
Page
Popover
... addonDeviceBackButton
functionSegment
ComponentListTitle
Component- Fix component event handle function parameter loss
- Fix some type error
- Fix component onChange event error
- Fix navigator methods option parameters
Change tsconfig.json
and set react-onsenui
module reference node_modules/@zhishinet-types/react-onsenui
in path like
{
"compilerOptions": {
...
"baseUrl": ".",
"paths": {
"*": ["node_modules/@zhishinet-types/*"]
}
}
}
Reference for TypeScript module resolution TypeScript 2: custom typings for untyped npm module
These definitions were written by Ozytis https://ozytis.fr. Hotfix by Derek.Chia [email protected]