Skip to content

Commit 205cd38

Browse files
committed
ts: add basemarkprops to transform args
1 parent a4f5e8b commit 205cd38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ export type BaseMarkProps = Partial<{
660660
sort:
661661
| string
662662
| ConstantAccessor<RawValue>
663+
| ((a: RawValue, b: RawValue) => number)
663664
| {
664665
/** sort data using an already defined channel */
665666
channel: string;
@@ -740,7 +741,7 @@ export type Channels = Record<
740741
ChannelAccessor | ConstantAccessor<string | number | boolean | symbol>
741742
>;
742743

743-
export type TransformArg<K> = Channels & { data: K[] };
744+
export type TransformArg<K> = Channels & BaseMarkProps & { data: K[] };
744745
export type MapArg<K> = Channels & { data: K[] };
745746

746747
export type TransformArgsRow = Partial<Channels> & { data: DataRow[] };

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy