Skip to content

Add deleteLater() and setDelayFunction(...) to TypeScript definitions and make them official API #22701

@arnog-ms

Description

@arnog-ms
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.68-git
clang version 20.0.0git
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/emscripten/3.1.68/libexec/llvm/bin

We are using the deleteLater() function a lot in our TypeScript codebase to not forget to delete a short lived reference. This works quite well. The only drawback is that we have to patch the generated TypeScript definitions to include the deleteLater() function for each interface that also has the delete() function. And we patch the MainModule export to include the setDelayFunction(...) definition, so that we can set the delay function at MainModule instantiation.

It would be great, if these two could be added to the generated TypeScript definitions and also be made an official API.

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