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
What about defining types etc? Should that be allowed inside of the external block. If not, it'll be hard to co-locate type defs and their bindings, and/or we'd potentially end up with multiple "external" blocks for each thing, which might/might not work. If yes, it'll probably complicate parsing etc a bit.
The text was updated successfully, but these errors were encountered:
Exploring/throwing ideas around for bindings/FFI. Here are some quick examples building on rescript-lang/syntax#217 (comment):
Path
Comes from the module
path
which you'd import.https://github.com/oven-sh/bun/blob/main/packages/bun-types/path.d.ts
FileSink
A globally available type/class.
https://github.com/oven-sh/bun/blob/main/packages/bun-types/bun.d.ts#L592C3-L600C15
FormData
Global, which you can instantiate, and where we're doing "t-first" bindings.
https://github.com/oven-sh/bun/blob/main/packages/bun-types/globals.d.ts#L884-L917C1
Questions and thoughts
external
block. If not, it'll be hard to co-locate type defs and their bindings, and/or we'd potentially end up with multiple "external" blocks for each thing, which might/might not work. If yes, it'll probably complicate parsing etc a bit.The text was updated successfully, but these errors were encountered: