Skip to content

Bindings: TypeScript bindings via WASM and emscripten #7

@ZigaSajovic

Description

@ZigaSajovic

We need to provide a complete TypeScript API for trueform. The goal is to bind all modules, mirroring the coverage of our Python bindings, while ensuring the API feels native to the TypeScript ecosystem.

Overview:

  • Module Binding: All modules present in the core library must be exposed. The binding architecture should follow the pattern established in the Python implementation (e.g. clear suffix building for name mangling, etc)
  • Idiomatic Style: While the functionality should match Python, the API design must be adapted to TypeScript standards (e.g., proper camelCase naming, strong typing, and standard async patterns).
  • Enhanced Tagging: Leverage TypeScript's type system (e.g., union types or enums) to better mirror the policy system of trueform
  • Documentation: Documentation follows established show-don't-tell pattern, where it doubles as a tutorial
  • Examples: wasm-examples will hence be rewritten using the API in TypeScript

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions