mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[React-Native] Fixed Vibration.vibrate type (#47764)
* Updated Vibration.vibrate type Following react-native docs, all of the arguments are optional and I've updated the docs to follow this * Update types/react-native/index.d.ts Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
This commit is contained in:
parent
4271605394
commit
81c224f5de
2
types/react-native/index.d.ts
vendored
2
types/react-native/index.d.ts
vendored
@ -8585,7 +8585,7 @@ export class Switch extends SwitchBase {}
|
||||
* 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[] | null, repeat?: boolean | null): void;
|
||||
|
||||
/**
|
||||
* Stop vibration
|
||||
|
||||
Loading…
Reference in New Issue
Block a user