use directive typescript error
When i try to use the use: directive i get the error
I tried to put
into types.d.ts but then it would not recognize any of the other solidjs imports
7 Replies
you just put the
model
and not your directive in question.
if you follow through the tutorial model
is an example directive@lxsmnsyc 🤖
Any clues how to fix this? I'm stuck
I also did this
Solved it, it took a couple of playing around with it tho. But I think that took longer than expected.
With the amount of questions asking this, I'm wondering why... Are the docs just not sufficiently conveying it?
All I personally did was:
Define this in the d.ts
your value type for the property is also wrong. it should be
form: boolean
the type refers to the JSX property, not the directive's type
so if you want use:foo="bar"
, you do foo: string
Thanks @lxsmnsyc 🤖 !