Summary
svelte-check reported 16 errors in src/lib/marks/helpers/TextCanvas.svelte.
Errors
- L68:C56 - Type 'Datum' does not satisfy the constraint 'object'. (ts)
- L209:C29 - Argument of type 'Datum' is not assignable to parameter of type 'Record<string | symbol, RawValue> | null'.
- L221:C25 - Argument of type 'Datum' is not assignable to parameter of type 'Record<string | symbol, RawValue>'. (ts)
- L234:C25 - Element implicitly has an 'any' type because expression of type '"font-size"' can't be used to index type '{ fill: string; stroke: string; }'.
- L239:C25 - Element implicitly has an 'any' type because expression of type '"font-style"' can't be used to index type '{ fill: string; stroke: string; }'.
- L242:C25 - Element implicitly has an 'any' type because expression of type '"font-variant"' can't be used to index type '{ fill: string; stroke: string; }'.
- L245:C25 - Element implicitly has an 'any' type because expression of type '"font-weight"' can't be used to index type '{ fill: string; stroke: string; }'.
- L248:C25 - Element implicitly has an 'any' type because expression of type '"font-family"' can't be used to index type '{ fill: string; stroke: string; }'.
- L251:C25 - Element implicitly has an 'any' type because expression of type '"text-transform"' can't be used to index type '{ fill: string; stroke: string; }'.
- L277:C50 - Element implicitly has an 'any' type because expression of type '"opacity"' can't be used to index type '{ fill: string; stroke: string; }'.
- L278:C54 - Element implicitly has an 'any' type because expression of type '"fill-opacity"' can't be used to index type '{ fill: string; stroke: string; }'.
- L279:C56 - Element implicitly has an 'any' type because expression of type '"stroke-opacity"' can't be used to index type '{ fill: string; stroke: string; }'.
- L286:C50 - Element implicitly has an 'any' type because expression of type '"stroke-width"' can't be used to index type '{ fill: string; stroke: string; }'.
- L293:C60 - Element implicitly has an 'any' type because expression of type '"text-anchor"' can't be used to index type '{ fill: string; stroke: string; }'.
- L296:C56 - Element implicitly has an 'any' type because expression of type '"stroke-linecap"' can't be used to index type '{ fill: string; stroke: string; }'.
- L297:C58 - Element implicitly has an 'any' type because expression of type '"stroke-linejoin"' can't be used to index type '{ fill: string; stroke: string; }'.
Reproduction
Run:
Summary
svelte-check reported 16 errors in
src/lib/marks/helpers/TextCanvas.svelte.Errors
Reproduction
Run: