Noticed a regression for Input Number while testing on webapp. Testing this logic fix #8793
Annotations
6 errors
Build types:
packages/perseus/src/util/math.ts#L239
This comparison appears to be unintentional because the types 'MathFormat | undefined' and '"percent"' have no overlap.
|
Build types:
packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts#L28
Type 'Parser<WidgetOptions<"numeric-input", { answers: { message: string; value: number; status: string; answerForms: ("integer" | "mixed" | "improper" | "proper" | "decimal" | "pi" | "percent")[] | undefined; strict: boolean; maxError: number | ... 1 more ... | undefined; simplify: string | ... 1 more ... | undefined; }[...' is not assignable to type 'Parser<NumericInputWidget>'.
|
Build types
Process completed with exit code 2.
|
Typecheck:
packages/perseus/src/util/math.ts#L239
This comparison appears to be unintentional because the types 'MathFormat | undefined' and '"percent"' have no overlap.
|
Typecheck:
packages/perseus/src/util/parse-perseus-json/perseus-parsers/numeric-input-widget.ts#L28
Type 'Parser<WidgetOptions<"numeric-input", { answers: { message: string; value: number; status: string; answerForms: ("integer" | "mixed" | "improper" | "proper" | "decimal" | "pi" | "percent")[] | undefined; strict: boolean; maxError: number | ... 1 more ... | undefined; simplify: string | ... 1 more ... | undefined; }[...' is not assignable to type 'Parser<NumericInputWidget>'.
|
Typecheck
Process completed with exit code 2.
|
Loading