mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Make offset parameter optional as per docs. (#37229)
The docs and comment above this method indicate that `offset` isn't a required parameter. This change brings the type declarations in sync with that.
This commit is contained in:
parent
e0f1942d15
commit
f5a50ceae9
2
types/react-native-snap-carousel/index.d.ts
vendored
2
types/react-native-snap-carousel/index.d.ts
vendored
@ -297,7 +297,7 @@ export interface CarouselStatic<T> extends React.ComponentClass<CarouselProps<T>
|
||||
* (see #238). Note that the offset parameter is not required and will default to either 1 or -1 depending
|
||||
* on the current scroll position
|
||||
*/
|
||||
triggerRenderingHack(offset: number): void;
|
||||
triggerRenderingHack(offset?: number): void;
|
||||
}
|
||||
|
||||
export type CarouselProperties<T> = ScrollViewProps & CarouselProps<T> & React.Props<CarouselStatic<T>>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user