Can't type custom precondition (?)
Hey, I created custom precondition, but my type overriding seems to dont work?
6 Replies
Maybe try putting the declaration in respective precondition itself?
I follow guide from sapphire.js so thats weird its not working
Did you use the sapphire CLI to generate the precondition template?
Or you manually wrote the code?
Because in my case, I used CLI, which I edited for my use
I wrote it manually
Try out the CLI, generate a precondition from it
And then compare the generated code with yours.
Whatever may be missing, add into yours
Generated code contains module declaration in the same code file itself
Yep it works thx