From bbb22bd0c795442109e4de24cb5603270f3d19e0 Mon Sep 17 00:00:00 2001 From: Austin Fay Date: Sat, 1 Apr 2023 06:07:30 -0600 Subject: [PATCH] fix: types --- lib/orm/interfaces/entity-options.interface.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/orm/interfaces/entity-options.interface.ts b/lib/orm/interfaces/entity-options.interface.ts index 00d3499..7fb8458 100644 --- a/lib/orm/interfaces/entity-options.interface.ts +++ b/lib/orm/interfaces/entity-options.interface.ts @@ -1,4 +1,3 @@ -import { Entity } from '../decorators'; import { FindSubQueryStatic } from './externals/express-cassandra.interface'; export interface EntityOptions { @@ -53,7 +52,7 @@ export interface EntityExtraOptions { versions?: { key: string }; } -type FilterOptions = Partial<{ [P in keyof T]: FindSubQueryStatic }>; +type FilterOptions = Record; interface CustomIndexOptions { on: string; @@ -64,7 +63,7 @@ interface CustomIndexOptions { } type EsIndexPropertiesOptionsStatic = { - [P in keyof T]?: { type?: string; index?: string } + [P in keyof T]?: { type?: string; index?: string }; }; interface GraphMappingOptionsStatic {