From 9b7618856f6e1fd423f302cdfab7121f913caf7f Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Wed, 14 Dec 2022 15:23:12 -0800 Subject: [PATCH] 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 --- Libraries/Vibration/Vibration.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Vibration/Vibration.d.ts b/Libraries/Vibration/Vibration.d.ts index 5cc57135fa7e89..6e194b320a6ede 100644 --- a/Libraries/Vibration/Vibration.d.ts +++ b/Libraries/Vibration/Vibration.d.ts @@ -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