-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Description
RPC methods are being proxied, which makes usage difficult. In the index.d.ts file, export is specified, but the generated index.js exports a Proxy. This also causes a "not found" error, similar to the example. RPC methods should be moved outside the proxy.
workers-rs/worker-build/src/js/shim.js
Line 113 in 490c6c9
| export default new Proxy(Entrypoint, classProxyHooks); |
lib.rs:
#[wasm_bindgen]
pub async fn greet()build/index.d.ts:
export function greet(): void;demo.ts:
import {greet} from "./build/index.js" //throw error not found greetMetadata
Metadata
Assignees
Labels
No labels