Created an Automatic Doc Extraction and Generator for React components
Will be publishing it soon, this is a screenshot just for a preview, need to work a little more as I have just seperated it out from an internal project.
View ArticleCannot able create a Record from another Record (With all optional keys)
What is the original problem you’re trying to solve?
View ArticleCreated an Automatic Doc Extraction and Generator for React components
Nice! I’ve been dying for tools like this. Is it just for React components, or will it cover functions?
View ArticleCreated an Automatic Doc Extraction and Generator for React components
Ideally it’ll generate documentation for any kind of rescript code, because I’m just using AST given by rescript-tools to generate doc and will be able to show any of your comments from @ocaml.doc....
View ArticleCreating bindings for a custom error type
Hello, I’m trying to create some bindings for the following: https.HttpsError class | Cloud Functions for Firebase I want to create a new object (of HttpsError) and raise it in a function. So, I’m...
View ArticleCreating bindings for a custom error type
You actually don’t need the asException identity function as your variants don’t have a payload and are thus coercible to strings. But it might be more convenient still. type functionsErrorCode = |...
View ArticleCreating bindings for a custom error type
To play ball with Firebase, I need to raise an instance of Which does hold data.
View ArticleCannot able create a Record from another Record (With all optional keys)
I can hypothesize that the problem could be related to some kind of TS type or some strict runtime check. In other words it could be something like the following: interface B { t?: string; l?: string;...
View ArticleCreating bindings for a custom error type
Sorry, I misread your initial post. Your initial implementation is what I would do as well then.
View ArticleCannot able create a Record from another Record (With all optional keys)
You would need the same boilerplate in js too anyway, right? I don’t think you can really make something simpler here.
View ArticleCannot able create a Record from another Record (With all optional keys)
Partially yes. Sorry, I have not been specific with my words – the boilerplate I am referring to is the need of a bMutable type to being able to modify the record. But anyway, I think that this...
View ArticleRescriptRelay with ReScript Core
Does anyone use RescriptRelay with the newest setup for Rescript project with @rescript/core: 1.3.0? I can run with a similar stack as in RescriptRelay repo’s example, with Rescript 11 but if I add...
View ArticleRescriptRelay with ReScript Core
I have this setup and it works flawlessly, are you sure you set your project as uncurried?
View ArticleGet typed AST from Rescript file
There is btw some more interest in this from the compiler discussions: How can I get AST/CST of a rescript file in JSON format? · rescript-lang/rescript-compiler · Discussion #6622 · GitHub
View ArticleThis argument cannot be applied without label. Confused, can anyone explain?
Hello everyone, Can someone explain this to me ? let log_name = (first_name, ~last_name=?) => { switch last_name { | None => Console.log2(first_name, "Noname") | Some(last_name) =>...
View ArticleThis argument cannot be applied without label. Confused, can anyone explain?
So to answer my newbie question, it works if we write the call without arguments like this: ada->log_name I guess otherwise, it means that we pass () (unit) as second argument, hence the failure.
View ArticleThis argument cannot be applied without label. Confused, can anyone explain?
Yes that’s exactly what it means.
View ArticleError compiling @rescript/core with Rescript 11
but it also has been updated to use @core 1.1.3 as npm shows, could be any type of dependency resolution error or some kind of dependency cache from npm?
View Article