You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: /Users/ducaale/lesson-editor/src/lessonValidation.ts: typecheck.macro: /Users/ducaale/lesson-editor/src/lessonValidation.ts: Unexpected token, expected "," (1:3)
> 1 | ((x: Positive) => x > 0)
| ^ Learn more: https://www.npmjs.com/package/typecheck.macro
This error occurred during the build time and cannot be dismissed.
Since I have strict mode enabled in my tsconfig.json, I can't leave x untyped and typing it would lead to syntax error from typecheck.macro. My workaround at the moment is to disable ts checking with ts-ignore
In a newly created CRA project, the following code
Fails with
Since I have strict mode enabled in my
tsconfig.json
, I can't leavex
untyped and typing it would lead to syntax error from typecheck.macro. My workaround at the moment is to disable ts checking withts-ignore
The text was updated successfully, but these errors were encountered: