Bar scales #2819
Annotations
30 errors
|
Tests:
packages/bar/src/compute/legends.ts#L86
Argument of type 'readonly (Partial<{ key: string; x: number; y: number; width: number; height: number; color: string; }> & { data: Partial<ComputedDatum<D, I>> & { id: string | number; hidden: boolean; }; })[]' is not assignable to parameter of type 'readonly (Partial<{ key: string; x: number; y: number; width: number; height: number; color: string; }> & { data: Partial<ComputedDatum<D, string>> & { id: string | number; hidden: boolean; }; })[]'.
|
|
Tests:
packages/bar/src/compute/legends.ts#L63
Type '{ id: string | I; label: string; hidden: boolean; color: string; }[]' is not assignable to type 'LegendData[]'.
|
|
Tests:
packages/bar/src/compute/grouped.ts#L224
Type 'ComputedBarDatum<D>[]' is not assignable to type 'ComputedBarDatum<D, I>[]'.
|
|
Tests:
packages/bar/src/compute/grouped.ts#L218
Conversion of type '{ data: D[]; keys: string[]; innerPadding: number; xScale: ScaleLog | ScaleSymlog | ScaleLinear<number> | ScaleTime<Date | NumberValue> | ScaleBand<...> | ScalePoint<...> | ScaleBand<...>; ... 5 more ...; margin: Margin; }' to type 'Params<D, any, any>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
|
Tests:
packages/bar/src/BarItem.tsx#L48
Object literal may only specify known properties, and 'color' does not exist in type 'ComputedDatum<D, I>'.
|
|
Tests:
packages/bar/src/BarCanvas.tsx#L448
Object literal may only specify known properties, and 'color' does not exist in type 'ComputedDatum<D, I>'.
|
|
Tests:
packages/bar/src/BarCanvas.tsx#L323
Argument of type 'ComputedDatum<D, I> & { value: number; }' is not assignable to parameter of type 'ComputedBarDatum<D, I>'.
|
|
Tests:
packages/bar/src/BarCanvas.tsx#L204
Type '{ borderRadius: number; borderWidth: number; isInteractive: boolean; isFocusable: false; labelSkipWidth: number; labelSkipHeight: number; margin: Margin; width: number; height: number; ... 12 more ...; getColor: OrdinalColorScale<...>; }' is not assignable to type 'BarCanvasCustomLayerProps<D, I>'.
|
|
Tests:
packages/bar/src/Bar.tsx#L400
Type '(datum: ComputedBarDatum<D, I>) => string' is not assignable to type '(datum: ComputedDatum<D, I>) => string | number'.
|
|
Tests:
packages/bar/src/Bar.tsx#L329
Argument of type 'ComputedDatum<D, I> & { value: number; }' is not assignable to parameter of type 'ComputedBarDatum<D, I>'.
|
|
Storybook Tests:
packages/bar/src/compute/legends.ts#L86
Argument of type 'readonly (Partial<{ key: string; x: number; y: number; width: number; height: number; color: string; }> & { data: Partial<ComputedDatum<D, I>> & { id: string | number; hidden: boolean; }; })[]' is not assignable to parameter of type 'readonly (Partial<{ key: string; x: number; y: number; width: number; height: number; color: string; }> & { data: Partial<ComputedDatum<D, string>> & { id: string | number; hidden: boolean; }; })[]'.
|
|
Storybook Tests:
packages/bar/src/compute/legends.ts#L63
Type '{ id: string | I; label: string; hidden: boolean; color: string; }[]' is not assignable to type 'LegendData[]'.
|
|
Storybook Tests:
packages/bar/src/compute/grouped.ts#L224
Type 'ComputedBarDatum<D>[]' is not assignable to type 'ComputedBarDatum<D, I>[]'.
|
|
Storybook Tests:
packages/bar/src/compute/grouped.ts#L218
Conversion of type '{ data: D[]; keys: string[]; innerPadding: number; xScale: ScaleLog | ScaleSymlog | ScaleLinear<number> | ScaleTime<Date | NumberValue> | ScaleBand<...> | ScalePoint<...> | ScaleBand<...>; ... 5 more ...; margin: Margin; }' to type 'Params<D, any, any>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
|
Storybook Tests:
packages/bar/src/BarItem.tsx#L48
Object literal may only specify known properties, and 'color' does not exist in type 'ComputedDatum<D, I>'.
|
|
Storybook Tests:
packages/bar/src/BarCanvas.tsx#L448
Object literal may only specify known properties, and 'color' does not exist in type 'ComputedDatum<D, I>'.
|
|
Storybook Tests:
packages/bar/src/BarCanvas.tsx#L323
Argument of type 'ComputedDatum<D, I> & { value: number; }' is not assignable to parameter of type 'ComputedBarDatum<D, I>'.
|
|
Storybook Tests:
packages/bar/src/BarCanvas.tsx#L204
Type '{ borderRadius: number; borderWidth: number; isInteractive: boolean; isFocusable: false; labelSkipWidth: number; labelSkipHeight: number; margin: Margin; width: number; height: number; ... 12 more ...; getColor: OrdinalColorScale<...>; }' is not assignable to type 'BarCanvasCustomLayerProps<D, I>'.
|
|
Storybook Tests:
packages/bar/src/Bar.tsx#L400
Type '(datum: ComputedBarDatum<D, I>) => string' is not assignable to type '(datum: ComputedDatum<D, I>) => string | number'.
|
|
Storybook Tests:
packages/bar/src/Bar.tsx#L329
Argument of type 'ComputedDatum<D, I> & { value: number; }' is not assignable to parameter of type 'ComputedBarDatum<D, I>'.
|
|
End-to-End Tests:
packages/bar/src/compute/legends.ts#L86
Argument of type 'readonly (Partial<{ key: string; x: number; y: number; width: number; height: number; color: string; }> & { data: Partial<ComputedDatum<D, I>> & { id: string | number; hidden: boolean; }; })[]' is not assignable to parameter of type 'readonly (Partial<{ key: string; x: number; y: number; width: number; height: number; color: string; }> & { data: Partial<ComputedDatum<D, string>> & { id: string | number; hidden: boolean; }; })[]'.
|
|
End-to-End Tests:
packages/bar/src/compute/legends.ts#L63
Type '{ id: string | I; label: string; hidden: boolean; color: string; }[]' is not assignable to type 'LegendData[]'.
|
|
End-to-End Tests:
packages/bar/src/compute/grouped.ts#L224
Type 'ComputedBarDatum<D>[]' is not assignable to type 'ComputedBarDatum<D, I>[]'.
|
|
End-to-End Tests:
packages/bar/src/compute/grouped.ts#L218
Conversion of type '{ data: D[]; keys: string[]; innerPadding: number; xScale: ScaleLog | ScaleSymlog | ScaleLinear<number> | ScaleTime<Date | NumberValue> | ScaleBand<...> | ScalePoint<...> | ScaleBand<...>; ... 5 more ...; margin: Margin; }' to type 'Params<D, any, any>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
|
End-to-End Tests:
packages/bar/src/BarItem.tsx#L48
Object literal may only specify known properties, and 'color' does not exist in type 'ComputedDatum<D, I>'.
|
|
End-to-End Tests:
packages/bar/src/BarCanvas.tsx#L448
Object literal may only specify known properties, and 'color' does not exist in type 'ComputedDatum<D, I>'.
|
|
End-to-End Tests:
packages/bar/src/BarCanvas.tsx#L323
Argument of type 'ComputedDatum<D, I> & { value: number; }' is not assignable to parameter of type 'ComputedBarDatum<D, I>'.
|
|
End-to-End Tests:
packages/bar/src/BarCanvas.tsx#L204
Type '{ borderRadius: number; borderWidth: number; isInteractive: boolean; isFocusable: false; labelSkipWidth: number; labelSkipHeight: number; margin: Margin; width: number; height: number; ... 12 more ...; getColor: OrdinalColorScale<...>; }' is not assignable to type 'BarCanvasCustomLayerProps<D, I>'.
|
|
End-to-End Tests:
packages/bar/src/Bar.tsx#L400
Type '(datum: ComputedBarDatum<D, I>) => string' is not assignable to type '(datum: ComputedDatum<D, I>) => string | number'.
|
|
End-to-End Tests:
packages/bar/src/Bar.tsx#L329
Argument of type 'ComputedDatum<D, I> & { value: number; }' is not assignable to parameter of type 'ComputedBarDatum<D, I>'.
|