rowboat/apps/x/packages/shared/src/bases.ts

23 lines
428 B
TypeScript
Raw Normal View History

2026-03-13 10:26:08 +05:30
/**
* Shared types for the Bases view (saved filtered views over the knowledge graph).
*/
export type SortDir = 'asc' | 'desc';
export interface ActiveFilter {
category: string;
value: string;
}
export interface BaseConfig {
filters: ActiveFilter[];
columns: string[];
sort?: { field: string; dir: SortDir };
search?: string;
}
export const DEFAULT_BASE_CONFIG: BaseConfig = {
filters: [],
columns: [],
};