mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-01-12 22:46:38 +08:00
react-onsenui: Fixed type definitions for Carousel and CarouselItem (#29621)
* react-onsenui: Added missing attributes to existing components and on-change event of a Switch. * react-onsenui: Fixed typo for ProgressBar intermediate --> indeterminate * react-onsenui: Fixed type for ProgressBar secondaryValue boolean --> number * react-onsenui: Fixed type definitions for Carousel and CarouselItem: modifier is optional and itemWidth/itemHeight may be string as well. * react-onsenui: increased version number
This commit is contained in:
8
types/react-onsenui/index.d.ts
vendored
8
types/react-onsenui/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for React Onsen UI (react-onsenui) 2.9.4
|
||||
// Type definitions for React Onsen UI (react-onsenui) 2.9.5
|
||||
// Project: https://onsen.io/v2/docs/guide/react/
|
||||
// Definitions by: Ozytis <https://ozytis.fr>,
|
||||
// Salim <https://github.com/salim7>,
|
||||
@@ -152,8 +152,8 @@ export class Carousel extends Component<{
|
||||
fullscreen?: boolean,
|
||||
overscrollable?: boolean,
|
||||
centered?: boolean,
|
||||
itemWidth?: number,
|
||||
itemHeight?: number,
|
||||
itemWidth?: number | string,
|
||||
itemHeight?: number | string,
|
||||
autoScroll?: boolean,
|
||||
autoScrollRatio?: number,
|
||||
swipeable?: boolean,
|
||||
@@ -167,7 +167,7 @@ export class Carousel extends Component<{
|
||||
}, any> {}
|
||||
|
||||
export class CarouselItem extends Component<{
|
||||
modifier: string
|
||||
modifier?: string
|
||||
}, any> {}
|
||||
|
||||
/*** AlertDialog ***/
|
||||
|
||||
Reference in New Issue
Block a user