@lynx-js/web-worker-rpc 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/TypeUtils.d.ts +2 -0
- package/dist/TypeUtils.js +2 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { RpcEndpoint, RpcEndpointAsync, RpcEndpointAsyncVoid, RpcEndpointSync, RpcEndpointSyncVoid } from './RpcEndpoint.js';
|
|
2
|
+
export type RpcCallType<E extends RpcEndpoint<unknown[], unknown>> = E extends RpcEndpointSync<unknown[], unknown> ? (...args: E['_TypeParameters']) => E['_TypeReturn'] : E extends RpcEndpointSyncVoid<unknown[]> ? (...args: E['_TypeParameters']) => void : E extends RpcEndpointAsync<unknown[], unknown> ? (...args: E['_TypeParameters']) => Promise<E['_TypeReturn']> : E extends RpcEndpointAsyncVoid<unknown[]> ? (...args: E['_TypeParameters']) => void : never;
|
package/dist/index.d.ts
CHANGED