From cd2eb7b120e6477d8a7176a4816c3e31855ff528 Mon Sep 17 00:00:00 2001 From: salim7 Date: Thu, 11 Oct 2018 02:19:48 +0200 Subject: [PATCH] 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 --- types/react-onsenui/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-onsenui/index.d.ts b/types/react-onsenui/index.d.ts index eb763e0ad6..8d2f751492 100644 --- a/types/react-onsenui/index.d.ts +++ b/types/react-onsenui/index.d.ts @@ -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 , // Salim , @@ -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 ***/