mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix Vibration.vibrate() allowing null params
Summary: The flow type allows these parameters to be optional but not null. Make TS the same. Changelog: [General][Fixed] - Fix Vibration.vibrate() allowing null params Reviewed By: christophpurrer Differential Revision: D42046301 fbshipit-source-id: a030d4f141a526dfe2f0fb3a90e36e641fa6d789
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e1af6302fc
commit
2c2cb09c00
Vendored
+1
-1
@@ -31,7 +31,7 @@
|
||||
* V(fixed) --wait(1s)--> V(fixed) --wait(2s)--> V(fixed) --wait(3s)--> V(fixed)
|
||||
*/
|
||||
export interface VibrationStatic {
|
||||
vibrate(pattern?: number | number[] | null, repeat?: boolean | null): void;
|
||||
vibrate(pattern?: number | number[], repeat?: boolean): void;
|
||||
|
||||
/**
|
||||
* Stop vibration
|
||||
|
||||
Reference in New Issue
Block a user