mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[lgtv2] Make payload optional for SpecializedSocket.send (#45251)
* [lgtv2] Make payload optional for SpecializedSocket.send * Adjust test for pointer socket Co-authored-by: Ovidiu Pruteanu <ovidiu@wmtek.com>
This commit is contained in:
parent
c4d306c658
commit
7dc8fd8266
2
types/lgtv2/index.d.ts
vendored
2
types/lgtv2/index.d.ts
vendored
@ -10,7 +10,7 @@ import { EventEmitter } from 'events';
|
||||
|
||||
declare namespace LGTV {
|
||||
interface SpecializedSocket {
|
||||
send(type: string, payload: any): void;
|
||||
send(type: string, payload?: any): void;
|
||||
|
||||
close(): void;
|
||||
}
|
||||
|
||||
@ -35,6 +35,7 @@ lgtv.on('connect', () => {
|
||||
if (!error) {
|
||||
pointerSocket = socket;
|
||||
pointerSocket.send('button', { name: 'HOME' });
|
||||
pointerSocket.send('click');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user