Closed escritorio-gustavo closed 8 months ago
This PR improves where the compiler error points when there is an attribute error.
This errors now point at the exact location they should
#[ts(as = "...")]
#[ts(optional = nullable)]
nullable
Errors about incompatible attributes point at the entire field definition
This is great, love it!
This PR improves where the compiler error points when there is an attribute error.
This errors now point at the exact location they should
#[ts(as = "...")]
attribute would point at the token after the string when receiving invalid path syntax#[ts(optional = nullable)]
would do the same when receiving anything other thannullable
Errors about incompatible attributes point at the entire field definition