-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace JSON.parse with parseJsonWithSchema #5881
Comments
I think before we do this we should extract common util functions (like this one) to a package. |
It should be go on the discussion. |
Hi @fehmer, Could you assign me that issue. |
@dev-mohit06 I'd say just work on it and create a PR |
Hey @fehmer, I’d prefer to avoid duplication of effort, so could you assign this issue to me if possible? |
@fehmer - Could you please indicate which files in the frontend need JSON.parse replacements? This will help ensure I cover all necessary changes. |
@fehmer thanks for helping me out |
Replace
JSON.parse
withMisc.parseJsonWithSchema
for type safety.Example:
monkeytype/frontend/src/ts/utils/url-handler.ts
Lines 68 to 92 in 2a0a5b4
The text was updated successfully, but these errors were encountered: