Comparing version 1.0.11 to 1.0.12
@@ -165,7 +165,7 @@ type RecursivePartial<T> = { | ||
interface AllSubFilters<T> { | ||
is: T | null; | ||
isNot: T | null; | ||
contains: string | Exclude<T, null>; | ||
endsWith: string | Exclude<T, null>; | ||
startsWith: string | Exclude<T, null>; | ||
is: T | Array<T> | null; | ||
isNot: T | Array<T> | null; | ||
contains: string | Exclude<T | Array<T>, null>; | ||
endsWith: string | Exclude<T | Array<T>, null>; | ||
startsWith: string | Exclude<T | Array<T>, null>; | ||
isGreaterThan: number | Date; | ||
@@ -176,6 +176,6 @@ isLessThan: number | Date; | ||
type Where<TSchema extends Record<string, any>> = { | ||
[TKey in keyof TSchema]: SubFilter<TSchema[TKey]>; | ||
[TKey in keyof TSchema]: SubFilter<TSchema[TKey]> | Array<SubFilter<TSchema[TKey]>>; | ||
}; | ||
type With<TSchema extends Record<string, any>> = { | ||
[TKey in keyof TSchema]: TSchema[TKey]; | ||
[TKey in keyof TSchema]: TSchema[TKey] | Array<TSchema[TKey]>; | ||
}; | ||
@@ -194,5 +194,5 @@ type AllFields<TSchema> = `ronin.${keyof RoninMetadata}` | Exclude<keyof TSchema, 'ronin'>; | ||
/** Perform specific matching actions (such as "is", "contains", or "startsWith") on the fields of a record. */ | ||
where: Partial<Where<RecursiveNullish<TSchema>>>; | ||
where: Partial<Where<RecursiveNullish<TSchema>>> | Array<Partial<Where<RecursiveNullish<TSchema>>>>; | ||
/** Perform "is" matching actions on the fields of a record. */ | ||
with: Partial<With<RecursiveNullish<TSchema>>>; | ||
with: Partial<With<RecursiveNullish<TSchema>>> | Array<Partial<With<RecursiveNullish<TSchema>>>>; | ||
/** Order the resulting records using a specific field. */ | ||
@@ -199,0 +199,0 @@ orderedBy: Partial<OrderedBy<TSchema>>; |
{ | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"name": "ronin", | ||
@@ -4,0 +4,0 @@ "scripts": { |
28417