Skip to content

Commit 2c2cb09

Browse files
NickGerlemanfacebook-github-bot
authored andcommittedDec 14, 2022
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
·
v0.80.1latest
1 parent e1af630 commit 2c2cb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Libraries/Vibration/Vibration.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* V(fixed) --wait(1s)--> V(fixed) --wait(2s)--> V(fixed) --wait(3s)--> V(fixed)
3232
*/
3333
export interface VibrationStatic {
34-
vibrate(pattern?: number | number[] | null, repeat?: boolean | null): void;
34+
vibrate(pattern?: number | number[], repeat?: boolean): void;
3535

3636
/**
3737
* Stop vibration

0 commit comments

Comments
 (0)
Please sign in to comment.