Parameter should be a read only type: what am I doing wrong? #378
Answered
by
RebeccaStevens
mward-sudo
asked this question in
Q&A
-
I'm getting the Parameter should be a read only type error and I cannot figure what I am doing incorrectly. Can anyone help? |
Beta Was this translation helpful? Give feedback.
Answered by
RebeccaStevens
Jun 18, 2022
Replies: 1 comment 2 replies
-
Is it this rule repotting the error: This rule checks typed deeply for readonlyness. So if |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mward-sudo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it this rule repotting the error:
@typescript-eslint/prefer-readonly-parameter-types
?This rule checks typed deeply for readonlyness. So if
PostAuthorFragment
orCloudinaryImageProps
isn't deeply readonly the an issue will be reported`.