Skip to content

Commit 50fb2fb

Browse files
committed
Update generate types
1 parent e460e30 commit 50fb2fb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import { ReactNode } from 'react';
12
import { CarouselProps, CarouselState } from './types';
2-
export declare function getChildrenLength(props: CarouselProps): number;
3+
declare type PropsWithChildren = CarouselProps & {
4+
children?: ReactNode;
5+
};
6+
export declare function getChildrenLength(props: PropsWithChildren): number;
37
export declare function calcOffset(props: CarouselProps, state: Omit<CarouselState, 'initialOffset' | 'prevProps'>): {
48
x: number;
59
y: number;
610
};
711
export declare function calcPageIndex(offset: number, props: CarouselProps, pageSize: number): number;
812
export declare function isOutOfBounds(offset: number, props: CarouselProps, pageWidth: number): boolean;
13+
export {};

generatedTypes/components/text/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ declare type PropsTypes = BaseComponentInjectedProps & ForwardRefInjectedProps &
3535
* @extends: Text
3636
* @extendsLink: https://facebook.github.io/react-native/docs/text.html
3737
* @modifiers: margins, color, typography
38+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/TextScreen.js
3839
*/
3940
declare class Text extends PureComponent<PropsTypes> {
4041
static displayName: string;

0 commit comments

Comments
 (0)