Skip to content

Commit

Permalink
Fix Vibration.vibrate() allowing null params
Browse files Browse the repository at this point in the history
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
  • Loading branch information
NickGerleman authored and Riccardo Cipolleschi committed Dec 19, 2022
1 parent 8770b27 commit 9b76188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Vibration/Vibration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b76188

Please sign in to comment.