Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 1751 articles
Browse latest View live

[ANN] Editor integration: type checking/feedback without saving (experimental)

I just did the same!

View Article


Image may be NSFW.
Clik here to view.

[ANN] Editor integration: type checking/feedback without saving (experimental)

Incredible work @zth. This is a huge improvement in the developer experience.

View Article


Bsconfig name vs npm package name vs namespace?

So I am trying to publish a namespaced npm package…@nobleai/rescript-x. Docs say I should set namespace: true in my bsconfig, and the name will be driven from the name set there. If i set the name...

View Article

[ANN] Editor integration: type checking/feedback without saving (experimental)

For Neovim (LSP built-in) users: require('lspconfig').rescriptls.setup { init_options = { extensionConfiguration = { incrementalTypechecking = { enabled = true }, }, }, }

View Article

What's the correct way to bind a React component with reserved keywords as...

I have a binding for Headless UI Dialog that stopped working recently. Maybe after upgrading to Rescript 11. The generated JS now has _open instead of open and I’m not sure why. I tried underscore...

View Article


Bsconfig name vs npm package name vs namespace?

You keep the name identical to the one in package.json and set a custom one in the namespace field. Example: github.com cca-io/rescript-mui/blob/master/packages/rescript-mui-material/rescript.json {...

View Article

Bsconfig name vs npm package name vs namespace?

Ahh perfect. It wasnt clear namespace took a string. maybe i missed it.

View Article

Package import "Diamond Problem" and building dependencies

Hi All So I now have a package that is our core lib. I am using this package as both a first-order and second-order dependency in our application (We have it in dependencies, and we have a dependency...

View Article


How to construct a record with type `{}`

(topic deleted by author)

View Article


Image may be NSFW.
Clik here to view.

Package import "Diamond Problem" and building dependencies

mouton: @nobleai/rescript-prelude Do you have - by any chance - different versions of the same package installed? Wha’ts the result of npm ls @nobleai/rescript-prelude? Are you even using npm? (or...

View Article

What's the correct way to bind a React component with reserved keywords as...

I’m not sure, what you are actually trying to ask, since your code example seems alright. I believe name-mangling (special handling for names containing underlines at specific positions) was recently...

View Article

What's the correct way to bind a React component with reserved keywords as...

That’s a breaking change in ReScript 11. The workaround is to use @as("open") as you did, although if you have JSX v3 enabled, it might not work. Try upgrading to JSX v4.

View Article

Gauging interest on outputting certain ReScript comments to JS

This appears to work in the generated .gen.ts files! Thank you

View Article


Package import "Diamond Problem" and building dependencies

[nix-shell:~/noble-sl/web]$ npm ls @nobleai/rescript-prelude noble@0.0.1 /noble-sl/web ├─┬ @nobleai/rescript-fields@0.1.4 │ └── @nobleai/rescript-prelude@0.12.3 └── @nobleai/rescript-prelude@0.12.4

View Article

Package import "Diamond Problem" and building dependencies

Aha! unifying the versions has done it. Still it seems like something rescript should be able to handle if we’re going to be serious about an expansive library ecosystem? Thanks @woeps Alex

View Article


Package import "Diamond Problem" and building dependencies

The current state is, that modules are identified by name (globally), and there is no notion of versions. Therefore the compiler doesn’t really know what to, when there is the same Module present...

View Article

What's the correct way to bind a React component with reserved keywords as...

Both fixes seem to work. I didn’t know about the quote syntax, it might be missing from the docs. The JSX setting confused me a little, but after checking the schema I learned that the JSX setting...

View Article


How to bind to a js property that is a promise (not method)

Hi, I’m trying to do some bindings for the new View Transitions dom api, but I’m getting a little stuck as it has properties that are promises, but the property is not a method. For example, the...

View Article

How to bind to a js property that is a promise (not method)

Oh wait, I think I figured it out. I just moved the properties into the type. type viewTransition = { viewTransitionFinished: promise<unit>, viewTransitionReady: promise<unit>,...

View Article

Image may be NSFW.
Clik here to view.

How to bind to a js property that is a promise (not method)

Hi Agent Coop! Glad to see you’re interested in ReScript There are multiple ways to bind to JS types and modules. The “traditional” way is to make the JS type an abstract type and use @send to bind to...

View Article
Browsing all 1751 articles
Browse latest View live