You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the aspiration of this project is to have bindings for anything available in the browser, it might be interesting consider having an additional auxiliary module.
Or to phrase it differently: some API methods are shit. Like https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement. You pass it any string and get an element back. Maybe you want to create something more specific and get a better type back like document.createElement("input") and get HTMLInputElement back.
The input string can't be misspelled and the return type is better.
Perhaps each current API module can have an APIExt companion module?
Let me know what you thoughts.
The text was updated successfully, but these errors were encountered:
Well, I think we definitely should ship "improved" APIs/helpers. Maybe others have differing opinions on this, but I think so at least. It'll increase the usefulness a lot for the lib.
We need to figure out where to draw the line obviously.
If we go for it, then I think we should find a way to pull completions from the "helper"/extension modules too.
While the aspiration of this project is to have bindings for anything available in the browser, it might be interesting consider having an additional auxiliary module.
Or to phrase it differently: some API methods are shit. Like https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement. You pass it any string and get an element back. Maybe you want to create something more specific and get a better type back like
document.createElement("input")
and getHTMLInputElement
back.So having something like:
The
input
string can't be misspelled and the return type is better.Perhaps each current API module can have an APIExt companion module?
Let me know what you thoughts.
The text was updated successfully, but these errors were encountered: