-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deleteLater() and setDelayFunction(...) to TypeScript definitions and make them official API #22701
Comments
I believe if you want to have |
It looks like we were exported some functions under the hood so Regarding |
I tried to add
Is this due to the bug mentioned above? If so, should this work with 3.6.19 once it's released? |
Thats odd. Are you passing
|
This is an excerpt from our cmake file.
|
I think that is hitting the bug about runtime exports combined with emit-tsd. That is fixed #22705 |
Ah yes, try |
OK, I will give that a try in the next few days. If I understand correctly, this would only solve the |
Correct, I'll add a separate fix for that. |
Thank you very much! |
Yes
|
I think, at the moment, only Together with It might also be worthwile to set the delay function to |
I think we just need to update the defaults. These definitions were mostly from the previous TS project, so I'm not sure why they're missing. The names could collide, but that should really be an error. |
I tested with 3.1.69 and I can see the export of setDelayFunction in the .d.ts file. Thanks for that. :-) |
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 thedeleteLater()
function for each interface that also has thedelete()
function. And we patch theMainModule
export to include thesetDelayFunction(...)
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.
The text was updated successfully, but these errors were encountered: