@types/golang-wasm-exec
TypeScript icon, indicating that this package has built-in type declarations

1.15.2 • Public • Published

Installation

npm install --save @types/golang-wasm-exec

Summary

This package contains type definitions for golang-wasm-exec (https://github.com/golang/go).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/golang-wasm-exec.

index.d.ts

/**
 * Go is the class as defined in the Golang `wasm_exec.js` distributable file required for WebAssembly.
 * Golang WebAssembly wiki: https://github.com/golang/go/wiki/WebAssembly
 */
declare class Go {
    argv: string[];
    env: { [envKey: string]: string };
    exit: (code: number) => void;
    importObject: WebAssembly.Imports;
    exited: boolean;
    mem: DataView;
    run(instance: WebAssembly.Instance): Promise<void>;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Adam Pyle.

/@types/golang-wasm-exec/

    Package Sidebar

    Install

    npm i @types/golang-wasm-exec

    Weekly Downloads

    1,091

    Version

    1.15.2

    License

    MIT

    Unpacked Size

    3.45 kB

    Total Files

    5

    Last publish

    Collaborators

    • types