Comparing version 1.0.7 to 1.0.8
@@ -168,3 +168,3 @@ type RecursivePartial<T> = { | ||
} | ||
type SubFilter<T> = T extends number ? Prettify<Pick<AllSubFilters<T>, 'isGreaterThan' | 'isLessThan' | 'is'>> : T extends string ? Prettify<Pick<AllSubFilters<T>, 'contains' | 'endsWith' | 'is' | 'isNot' | 'startsWith'>> : T extends boolean ? Prettify<Pick<AllSubFilters<T>, 'is'>> : T extends Date ? Prettify<Pick<AllSubFilters<T>, 'isGreaterThan' | 'isLessThan' | 'is'>> : never; | ||
type SubFilter<T> = T extends number ? Prettify<Pick<Partial<AllSubFilters<T>>, 'isGreaterThan' | 'isLessThan' | 'is'>> : T extends string ? Prettify<Pick<Partial<AllSubFilters<T>>, 'contains' | 'endsWith' | 'is' | 'isNot' | 'startsWith'>> : T extends boolean ? Prettify<Pick<Partial<AllSubFilters<T>>, 'is'>> : T extends Date ? Prettify<Pick<Partial<AllSubFilters<T>>, 'isGreaterThan' | 'isLessThan' | 'is'>> : never; | ||
type Where<TSchema extends Record<string, any>> = { | ||
@@ -176,3 +176,3 @@ [TKey in keyof TSchema]: SubFilter<TSchema[TKey]>; | ||
}; | ||
type AllFields<TSchema> = `ronin.${keyof RoninMetadata}` | keyof TSchema; | ||
type AllFields<TSchema> = `ronin.${keyof RoninMetadata}` | Exclude<keyof TSchema, 'ronin'>; | ||
type RecordFields = 'views' | 'accounts' | 'spaces'; | ||
@@ -179,0 +179,0 @@ interface OrderedBy<TSchema> { |
{ | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"name": "ronin", | ||
@@ -4,0 +4,0 @@ "scripts": { |
27233