Can't type custom precondition (?)
Hey, I created custom precondition, but my type overriding seems to dont work?
![No description](https://cdn.answeroverflow.com/1151876312189911150/image.png)
![No description](https://cdn.answeroverflow.com/1151876312466718730/image.png)
![No description](https://cdn.answeroverflow.com/1151876312722579476/image.png)
![No description](https://cdn.answeroverflow.com/1151876313305595984/image.png)
![No description](https://cdn.answeroverflow.com/1151876313762758696/image.png)
6 Replies
Maybe try putting the declaration in respective precondition itself?
I follow guide from sapphire.js so thats weird its not working
![No description](https://cdn.answeroverflow.com/1151877136496472145/image.png)
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