A big commit with a bunch of node modules so I could run puppeteer for Walmart. Added some todos and Headway's templates.

This commit is contained in:
Norm Rasmussen
2024-02-28 17:13:10 -05:00
parent dbcdfc8472
commit 1184fe0cd1
1107 changed files with 76526 additions and 8934 deletions

View File

@ -15,8 +15,8 @@
* limitations under the License.
*/
import type WebSocket from 'ws';
import type { ITransport } from './transport.js';
export declare class WebSocketTransport implements ITransport {
import type { Transport } from './transport.js';
export declare class WebSocketTransport implements Transport {
#private;
constructor(websocket: WebSocket);
setOnMessage(onMessage: (message: string) => void): void;

View File

@ -18,7 +18,7 @@
* Represents a low-level transport mechanism for raw text messages like
* a WebSocket, pipe, or Window binding.
*/
export interface ITransport {
export interface Transport {
setOnMessage: (handler: (message: string) => Promise<void> | void) => void;
sendMessage: (message: string) => Promise<void> | void;
close(): void;