We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4f5e8b commit 205cd38Copy full SHA for 205cd38
src/lib/types.ts
@@ -660,6 +660,7 @@ export type BaseMarkProps = Partial<{
660
sort:
661
| string
662
| ConstantAccessor<RawValue>
663
+ | ((a: RawValue, b: RawValue) => number)
664
| {
665
/** sort data using an already defined channel */
666
channel: string;
@@ -740,7 +741,7 @@ export type Channels = Record<
740
741
ChannelAccessor | ConstantAccessor<string | number | boolean | symbol>
742
>;
743
-export type TransformArg<K> = Channels & { data: K[] };
744
+export type TransformArg<K> = Channels & BaseMarkProps & { data: K[] };
745
export type MapArg<K> = Channels & { data: K[] };
746
747
export type TransformArgsRow = Partial<Channels> & { data: DataRow[] };
0 commit comments