Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Fay committed Apr 1, 2023
1 parent a53507a commit bbb22bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/orm/interfaces/entity-options.interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Entity } from '../decorators';
import { FindSubQueryStatic } from './externals/express-cassandra.interface';

export interface EntityOptions<T = object> {
Expand Down Expand Up @@ -53,7 +52,7 @@ export interface EntityExtraOptions {
versions?: { key: string };
}

type FilterOptions<T> = Partial<{ [P in keyof T]: FindSubQueryStatic }>;
type FilterOptions<T> = Record<string, FindSubQueryStatic>;

interface CustomIndexOptions {
on: string;
Expand All @@ -64,7 +63,7 @@ interface CustomIndexOptions {
}

type EsIndexPropertiesOptionsStatic<T> = {
[P in keyof T]?: { type?: string; index?: string }
[P in keyof T]?: { type?: string; index?: string };
};

interface GraphMappingOptionsStatic<Entity = any> {
Expand Down

0 comments on commit bbb22bd

Please sign in to comment.