I'm getting the Parameter should be a read only type error and I cannot figure what I am doing incorrectly.
\nCan anyone help?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Is it this rule repotting the error: @typescript-eslint/prefer-readonly-parameter-types?
This rule checks typed deeply for readonlyness. So if PostAuthorFragment or CloudinaryImageProps isn't deeply readonly the an issue will be reported`.
-
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.
-
|
Is it this rule repotting the error: This rule checks typed deeply for readonlyness. So if |
Beta Was this translation helpful? Give feedback.
Is it this rule repotting the error:
@typescript-eslint/prefer-readonly-parameter-types?This rule checks typed deeply for readonlyness. So if
PostAuthorFragmentorCloudinaryImagePropsisn't deeply readonly the an issue will be reported`.