mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-29 23:50:04 +00:00
fix(Vibration): marked parameter as optional
The `repeat`-parameter is optional: https://facebook.github.io/react-native/docs/vibration#vibrate
This commit is contained in:
2
types/react-native/index.d.ts
vendored
2
types/react-native/index.d.ts
vendored
@@ -8458,7 +8458,7 @@ export interface VibrationIOSStatic {
|
||||
* V(fixed) --wait(1s)--> V(fixed) --wait(2s)--> V(fixed) --wait(3s)--> V(fixed)
|
||||
*/
|
||||
export interface VibrationStatic {
|
||||
vibrate(pattern: number | number[], repeat: boolean): void;
|
||||
vibrate(pattern: number | number[], repeat?: boolean): void;
|
||||
|
||||
/**
|
||||
* Stop vibration
|
||||
|
||||
Reference in New Issue
Block a user