Ketho / vscode-wow-api

VS Code extension for World of Warcraft AddOns
https://marketplace.visualstudio.com/items?itemName=ketho.wow-api
MIT License
143 stars 31 forks source link

Update `LibStub:NewLibrary` return value #53

Closed Snakybo closed 1 year ago

Snakybo commented 1 year ago

Currently, LibStub:NewLibrary has no return value. It now returns a value of generic type T.

Instead of having to manully specify a @class to the value, it's automatically inferred by whatever string is given as major. So: LibStub:NewLibrary("MyLib-1.0") returns a value of type MyLib-1.0.