You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
484 B
14 lines
484 B
|
4 months ago
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright 2019 Google LLC
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
import { Endpoint } from "./protocol";
|
||
|
|
export interface NodeEndpoint {
|
||
|
|
postMessage(message: any, transfer?: any[]): void;
|
||
|
|
on(type: string, listener: EventListenerOrEventListenerObject, options?: {}): void;
|
||
|
|
off(type: string, listener: EventListenerOrEventListenerObject, options?: {}): void;
|
||
|
|
start?: () => void;
|
||
|
|
}
|
||
|
|
export default function nodeEndpoint(nep: NodeEndpoint): Endpoint;
|