Skip to content

Host implemented class #166

@QLXWS

Description

@QLXWS

Hello,I try to use Wasmnizer-ts on Ubuntu20,and meet some problems:
For a host-implemented class, how should one access and manipulate its member variables on the host side?
No relevant guidance was found in the documentation (only instructions on how to implement class member functions on the host side were provided)

e.g. (ts code)
declare class DeclaredClass {
grade: number;
constructor(grade: number);
sayHello(): void;
static whoSayHi(name: string): number;
get value(): any;
set value(v: number);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions