Skip to content

4.0.0-beta.17

Compare
Choose a tag to compare
@JumpLink JumpLink released this 03 Nov 14:41
· 32 commits to main since this release
8de2706

4.0.0-beta.17 - Support for Promisified Method Types 🎉

We're excited to announce full TypeScript support for promisified methods, now enabled by default and available in the published NPM types. The implementation uses TypeScript overloads, providing:

  • Automatic Promise return types when the callback argument is omitted
  • Backward compatibility with original types when using callbacks
  • Full integration with the type system

Check out our new example demonstrating asynchronous file operations with the new typing system.

Note: As this is a new feature, we welcome your feedback and real-world usage reports.

What's Changed

  • ✨ Add promisified overload methods (@JumpLink in #210)
  • 🔄 Implement promisification for class members in typescript generator (@ewlsh in #177)
  • 📝 Add example code for promisified methods
  • 📦 Update dependencies
  • 🔄 Update GIR files

Full Changelog: 4.0.0-beta.16...4.0.0-beta.17