@remote-ui/rpc
Advanced tools
Comparing version
import type { MessageEndpoint, RemoteCallable, EncodingStrategy, EncodingStrategyApi } from './types'; | ||
interface Options<T = unknown> { | ||
export interface CreateEndpointOptions<T = unknown> { | ||
uuid?(): string; | ||
@@ -39,4 +39,3 @@ createEncoder?(api: EncodingStrategyApi): EncodingStrategy; | ||
*/ | ||
export declare function createEndpoint<T>(initialMessenger: MessageEndpoint, { uuid, createEncoder, callable, }?: Options<T>): Endpoint<T>; | ||
export {}; | ||
export declare function createEndpoint<T>(initialMessenger: MessageEndpoint, { uuid, createEncoder, callable, }?: CreateEndpointOptions<T>): Endpoint<T>; | ||
//# sourceMappingURL=endpoint.d.ts.map |
export { createEndpoint } from './endpoint'; | ||
export type { Endpoint } from './endpoint'; | ||
export type { Endpoint, CreateEndpointOptions } from './endpoint'; | ||
export { createBasicEncoder } from './encoding'; | ||
@@ -4,0 +4,0 @@ export { fromMessagePort, fromWebWorker } from './adaptors'; |
{ | ||
"name": "@remote-ui/rpc", | ||
"description": "An RPC library with strong support for simulating the transfer of functions via postMessage", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"publishConfig": { | ||
@@ -25,3 +25,4 @@ "access": "public" | ||
"uuid": "^8.2.0" | ||
} | ||
}, | ||
"gitHead": "dca8fc3a4e29b8a95b23845a0f4fdd3bc2a6e1b6" | ||
} |
@@ -28,3 +28,3 @@ import {createBasicEncoder} from './encoding'; | ||
interface Options<T = unknown> { | ||
export interface CreateEndpointOptions<T = unknown> { | ||
uuid?(): string; | ||
@@ -72,3 +72,3 @@ createEncoder?(api: EncodingStrategyApi): EncodingStrategy; | ||
callable, | ||
}: Options<T> = {}, | ||
}: CreateEndpointOptions<T> = {}, | ||
): Endpoint<T> { | ||
@@ -75,0 +75,0 @@ let terminated = false; |
export {createEndpoint} from './endpoint'; | ||
export type {Endpoint} from './endpoint'; | ||
export type {Endpoint, CreateEndpointOptions} from './endpoint'; | ||
export {createBasicEncoder} from './encoding'; | ||
@@ -4,0 +4,0 @@ export {fromMessagePort, fromWebWorker} from './adaptors'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
489191
13.03%99
1.02%4228
-0.02%