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
MRDGH282115mo ago
Maybe try putting the declaration in respective precondition itself?
mafineeek
mafineeekOP15mo ago
I follow guide from sapphire.js so thats weird its not working
No description
MRDGH2821
MRDGH282115mo 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
mafineeekOP15mo ago
I wrote it manually
MRDGH2821
MRDGH282115mo 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
mafineeekOP15mo ago
Yep it works thx
Want results from more Discord servers?
Add your server