Format stuff + update packages

This commit is contained in:
Zoe Roux
2025-01-24 21:18:52 +01:00
parent 1634624701
commit 5bf30af564
4 changed files with 26 additions and 25 deletions
+4 -4
View File
@@ -1,20 +1,20 @@
import {
is,
type ColumnsSelection,
type SQL,
type Subquery,
Table,
View,
ViewBaseConfig,
getTableColumns,
is,
sql,
type SQL,
} from "drizzle-orm";
import type { AnyPgSelect } from "drizzle-orm/pg-core";
import type { CasingCache } from "drizzle-orm/casing";
import type { AnyMySqlSelect } from "drizzle-orm/mysql-core";
import type { AnyPgSelect } from "drizzle-orm/pg-core";
import type { AnySQLiteSelect } from "drizzle-orm/sqlite-core";
import type { WithSubquery } from "drizzle-orm/subquery";
import { db } from "./index";
import type { CasingCache } from "drizzle-orm/casing";
// https://github.com/sindresorhus/type-fest/blob/main/source/simplify.d.ts#L58
type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};
+6 -1
View File
@@ -12,7 +12,12 @@ export type FilterDef = {
type: "int" | "float" | "date" | "string";
isArray?: boolean;
}
| { column: Column | SQL; type: "enum"; values: string[]; isArray?: boolean };
| {
column: Column | SQL;
type: "enum";
values: string[];
isArray?: boolean;
};
};
export const Filter = ({