Skip to content

Conversation

@brendandahl
Copy link
Collaborator

  • All classes now extend from ClassHandle, which is what really happens in JS.
  • Add the missing methods that are available on ClassHandles.

Fixes #22701

 - All classes now extend from ClassHandle, which is what really
   happens in JS.
 - Add the missing methods that are available on ClassHandles.
@brendandahl brendandahl requested a review from sbc100 October 14, 2024 22:01
Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@arnog-ms
Copy link

arnog-ms commented Oct 21, 2024

I think deleteLater() returns a reference to the object itself, doesn't it? Otherwise you couldn't chain calls. So for the TypeScript definition the return type for deleteLater() should rather be this?

@brendandahl brendandahl merged commit 218195c into emscripten-core:main Oct 24, 2024
1 of 2 checks passed
vrabaud added a commit to vrabaud/opencv that referenced this pull request Dec 18, 2024
This is in emscripten 3.1.71 and above, cf
emscripten-core/emscripten#22734
There was a temptative fix upstream to no avail:
emscripten-core/emscripten#23132
vrabaud added a commit to vrabaud/opencv that referenced this pull request Dec 18, 2024
This is in emscripten 3.1.71 and above, cf
emscripten-core/emscripten#22734
There was a temptative fix upstream to no avail:
emscripten-core/emscripten#23132
shyama7004 pushed a commit to shyama7004/opencv that referenced this pull request Jan 20, 2025
This is in emscripten 3.1.71 and above, cf
emscripten-core/emscripten#22734
There was a temptative fix upstream to no avail:
emscripten-core/emscripten#23132
NanQin555 pushed a commit to NanQin555/opencv that referenced this pull request Feb 24, 2025
This is in emscripten 3.1.71 and above, cf
emscripten-core/emscripten#22734
There was a temptative fix upstream to no avail:
emscripten-core/emscripten#23132
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants