Can't type custom precondition (?)

Hey, I created custom precondition, but my type overriding seems to dont work?
No description
No description
No description
No description
No description
6 Replies
MRDGH2821
MRDGH28212y ago
Maybe try putting the declaration in respective precondition itself?
mafineeek
mafineeekOP2y ago
I follow guide from sapphire.js so thats weird its not working
No description
MRDGH2821
MRDGH28212y ago
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
mafineeek
mafineeekOP2y ago
I wrote it manually
MRDGH2821
MRDGH28212y ago
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
mafineeek
mafineeekOP2y ago
Yep it works thx

Did you find this page helpful?