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
Over at pocketbase/pocketbase#5512 we are having a discussion about the PocketBase JSVM typings, and I recognize that goja's core and node typings underly PocketBase's extensions.
Do you know if there has been any discussion or attempts at creating something like @types/goja and @types/goja-node? It would be hugely useful for anyone using TS to target a Goja environment.
The text was updated successfully, but these errors were encountered:
For example, @types/node introduces many typings and modules that are not available in the goja environment. It seems that es2020 is fairly suitable for defining the basic goja types. Can you help me understand if there might be suitable typings existing already?
There is a long-standing issue about listing all ECMAScript features and their status. Unfortunately, I haven't had time for it so far. Having said that, most of the features are there, so taking es2020 as a basis is not a bad shot.
As for node, very few modules have been implemented, and most of those that are implemented are incomplete, so no, I don't think there are suitable typings available.
Over at pocketbase/pocketbase#5512 we are having a discussion about the PocketBase JSVM typings, and I recognize that goja's core and node typings underly PocketBase's extensions.
Do you know if there has been any discussion or attempts at creating something like
@types/goja
and@types/goja-node
? It would be hugely useful for anyone using TS to target a Goja environment.The text was updated successfully, but these errors were encountered: