Summary
svelte-check reported 43 errors in src/lib/marks/ColorLegend.svelte.
Errors
- L50:C57 - Argument of type 'RawValue' is not assignable to parameter of type '(NumberValue & OrdinalDomain) & OrdinalDomain'.
- L51:C50 - Argument of type 'number | undefined' is not assignable to parameter of type 'string | SymbolType'.
- L59:C64 - Argument of type 'RawValue' is not assignable to parameter of type '(NumberValue & OrdinalDomain) & OrdinalDomain'.
- L63:C64 - Argument of type 'RawValue' is not assignable to parameter of type '(NumberValue & OrdinalDomain) & OrdinalDomain'.
- L67:C70 - Argument of type 'RawValue' is not assignable to parameter of type '(NumberValue & OrdinalDomain) & OrdinalDomain'.
- L76:C37 - No overload matches this call.
- L80:C44 - Property 'quantiles' does not exist on type 'ScaleLinear<RawValue, number, never> | ScaleBand | ScaleOrdinal<OrdinalDomain, number, never>'.
- L82:C46 - Property 'thresholds' does not exist on type 'ScaleLinear<RawValue, number, never> | ScaleBand | ScaleOrdinal<OrdinalDomain, number, never>'.
- L85:C17 - Argument of type 'string | undefined' is not assignable to parameter of type 'number'.
- L87:C18 - Object is possibly 'undefined'. (ts)
- L87:C18 - The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L87:C30 - Object is possibly 'undefined'. (ts)
- L87:C30 - The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L98:C17 - Type '{ domain: [string, string] | [undefined, undefined]; ticks: number[]; }' is not assignable to type 'false | RawValue[] | Partial | undefined'.
- L101:C43 - Type 'RawValue' is not assignable to type 'string | null | undefined'.
- L103:C58 - Object is possibly 'undefined'. (ts)
- L103:C58 - The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L103:C73 - Object is possibly 'undefined'. (ts)
- L103:C73 - The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L103:C85 - Object is possibly 'undefined'. (ts)
- L103:C85 - The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L106:C33 - Type 'number | undefined' is not assignable to type 'string | null | undefined'.
- L106:C66 - Argument of type 'number' is not assignable to parameter of type '(NumberValue & OrdinalDomain) & OrdinalDomain'. (ts)
- L109:C33 - Type 'number | undefined' is not assignable to type 'string | null | undefined'.
- L111:C45 - Type 'RawValue | undefined' is not assignable to type 'string | null | undefined'.
- L114:C32 - Type 'null' is not assignable to type 'string | undefined'. (ts)
- L115:C69 - Expected 3 arguments, but got 1. (ts)
- L119:C37 - No overload matches this call.
- L120:C37 - Argument of type 'string | undefined' is not assignable to parameter of type 'number'.
- L120:C60 - Object is possibly 'undefined'. (ts)
- L120:C60 - The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L120:C72 - Object is possibly 'undefined'. (ts)
- L120:C72 - The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L131:C17 - Type '{ domain: [string, string] | [undefined, undefined]; tickSpacing: number; tickFormat: TickFormatFunction | { (value: number): string; (value: number | bigint): string; (value: number | bigint | Intl.StringNumericLiteral): string; }; }' is not assignable to type 'false | RawValue[] | Partial | undefined'.
- L136:C54 - Object is possibly 'undefined'. (ts)
- L136:C54 - The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L136:C69 - Object is possibly 'undefined'. (ts)
- L136:C69 - The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L136:C81 - Object is possibly 'undefined'. (ts)
- L136:C81 - The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. (ts)
- L137:C33 - Type 'number | undefined' is not assignable to type 'string | null | undefined'.
- L137:C66 - Argument of type 'number' is not assignable to parameter of type '(NumberValue & OrdinalDomain) & OrdinalDomain'. (ts)
- L141:C32 - Type 'null' is not assignable to type 'string | undefined'. (ts)
Reproduction
Run:
Summary
svelte-check reported 43 errors in
src/lib/marks/ColorLegend.svelte.Errors
Reproduction
Run: