A lexicon-driven AppView for ATProto.
Something went wrong. Try again.
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748import type { ColumnSort, RowData } from "@tanstack/react-table";import type { DataTableConfig } from "@/config/data-table";import type { FilterItemSchema } from "@/lib/parsers";
declare module "@tanstack/react-table" { // biome-ignore lint/correctness/noUnusedVariables: TData is used in the TableMeta interface interface TableMeta<TData extends RowData> { queryKeys?: QueryKeys; }
// biome-ignore lint/correctness/noUnusedVariables: TData and TValue are used in the ColumnMeta interface interface ColumnMeta<TData extends RowData, TValue> { label?: string; placeholder?: string; variant?: FilterVariant; options?: Option[]; range?: [number, number]; unit?: string; icon?: React.FC<React.SVGProps<SVGSVGElement>>; }}
export interface QueryKeys { page: string; perPage: string; sort: string; filters: string; joinOperator: string;}
export interface Option { label: string; value: string; count?: number; icon?: React.FC<React.SVGProps<SVGSVGElement>>;}
export type FilterOperator = DataTableConfig["operators"][number];export type FilterVariant = DataTableConfig["filterVariants"][number];export interface ExtendedColumnSort<TData> extends Omit<ColumnSort, "id"> { id: Extract<keyof TData, string>;}
export interface ExtendedColumnFilter<TData> extends FilterItemSchema { id: Extract<keyof TData, string>;}