import { say_hello } from "./bindings/bindings.ts";
say_hello();
Throw Error below 😢
error: TS2345 [ERROR]: Argument of type 'Promise<Uint8Array>' is not assignable to parameter of type 'Uint8Array'.
Type 'Promise<Uint8Array>' is missing the following properties from type 'Uint8Array': BYTES_PER_ELEMENT, buffer, byteLength, byteOffset, and 28 more.
return decode(result)
~~~~~~
TS2773 [ERROR]: Did you forget to use 'await'?
return decode(result)
~~~~~~
Problem
Rust Source Code
Deno Source Code
Throw Error below 😢
Possible Solution
take a look #77