@travetto/model
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -23,3 +23,3 @@ { | ||
}, | ||
"version": "0.0.16" | ||
"version": "0.0.17" | ||
} |
@@ -1,4 +0,1 @@ | ||
import { ModelCore } from '../model'; | ||
import { Class } from '@travetto/registry'; | ||
export type Point = [number, number]; | ||
@@ -5,0 +2,0 @@ |
@@ -50,3 +50,3 @@ import { RetainFields, Point, FieldType } from './common'; | ||
type _MatchQuery<T> = { | ||
[P in keyof T]?: T[P] extends (Date | number | string | (infer U)[] | Point | Function) ? FieldQuery<T[P]> : _MatchQuery<T[P]> | ||
[P in keyof T]?: T[P] extends object ? _MatchQuery<T[P]> : FieldQuery<T[P]>; | ||
} & { $and?: never, $or?: never, $not?: never }; | ||
@@ -62,3 +62,3 @@ | ||
export type MatchQuery<T> = _MatchQuery<T>; | ||
export type WhereClause<T> = _WhereClause<T> | _MatchQuery<T>; | ||
export type MatchQuery<T> = _MatchQuery<RetainFields<T>>; | ||
export type WhereClause<T> = _WhereClause<RetainFields<T>> | _MatchQuery<RetainFields<T>>; |
@@ -10,3 +10,3 @@ import { Suite, Test, BeforeAll } from '@travetto/test'; | ||
size: number; | ||
language: string; | ||
language?: string; | ||
} | ||
@@ -36,2 +36,3 @@ | ||
where: { | ||
id: 5, | ||
prefs: { | ||
@@ -38,0 +39,0 @@ language: { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36192
910