mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix: unrequired props should be optional (#43195)
Some properties of PaginationProps were not optional even thought the package documentation said they were not required.
This commit is contained in:
parent
0664856f4e
commit
39544038a8
8
types/react-native-snap-carousel/index.d.ts
vendored
8
types/react-native-snap-carousel/index.d.ts
vendored
@ -340,15 +340,15 @@ export interface PaginationProps {
|
||||
/**
|
||||
* Length of dot animation (milliseconds)
|
||||
*/
|
||||
animatedDuration: number;
|
||||
animatedDuration?: number;
|
||||
/**
|
||||
* Controls "bounciness"/overshoot on dot animation
|
||||
*/
|
||||
animatedFriction: number;
|
||||
animatedFriction?: number;
|
||||
/**
|
||||
* Controls speed dot animation
|
||||
*/
|
||||
animatedTension: number;
|
||||
animatedTension?: number;
|
||||
/**
|
||||
* Number of dots to display
|
||||
*/
|
||||
@ -373,7 +373,7 @@ export interface PaginationProps {
|
||||
/**
|
||||
* Delay in ms, from the start of the touch, before onPressIn is called on dot
|
||||
*/
|
||||
delayPressInDot: number;
|
||||
delayPressInDot?: number;
|
||||
/**
|
||||
* Background color of the active dot.
|
||||
* Use this if you want to animate the change between active and inactive colors,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user