Tom Sherman

Results 234 comments of Tom Sherman

Going to close this PR now that we have #5539. I wanted to add these so that we can have a shared `bigint` type across third party code, the bindings...

I think moving the compiler frontend (the `/rescript` script) into a native binary is the way. Combine this with tiny scripts for node, bun, and deno to perform platform switching....

This proposal is sorely needed IMO, we at least need a single type in pervasives for libraries to target to as a first step. > We don't need a special...

The `ofString` function introduces room for runtime errors though, errors that should be caught at compile time. It also requires the developer to be aware of the edge cases of...

@sindresorhus Sure! I'll pick this up when I have some time 😄 Just a note, I'm not sure my top todo of "Promisifying modules with includes and excludes" is possible...

Now I'm revisiting this it looks like excludes/includes are possible to make safe for the most part. I think even exuding the sync methods by default is possible with template...

@sindresorhus I'm not sure it's possible to support "module functions" here ie. modules with methods. TypeScript doesn't really allow you to work with a type that's callable and also has...

Can you share what the output of `pify(createCSR)` would be usinng `@types/pify`? As I understand it you'd just get `Promise`? If so then `@types/pify` handles it by not handling it...

Does the workaround I added to the readme help for you? I get that it's not very ergonomic but should work in all cases. https://github.com/sindresorhus/pify#why-is-pify-choosing-the-last-function-overload-when-using-it-with-typescript

You could potentially try https://github.com/sidorares/hot-module-replacement so that a bundler isn't needed. Also, if someone is gonna attempt this they should integrate with https://www.npmjs.com/package/react-refresh however this does require babel.