From 6569305fe07a981fdca2bb687ca4f445a54bf1ed Mon Sep 17 00:00:00 2001 From: Enzo Eghermanne Date: Tue, 16 Apr 2019 16:33:26 +0200 Subject: [PATCH] fix(Vibration): marked parameter as optional The `repeat`-parameter is optional: https://facebook.github.io/react-native/docs/vibration#vibrate --- types/react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index df8c1e7695..bb1948fc10 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -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