@contember/schema
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -103,7 +103,7 @@ import Value from './value'; | ||
} | ||
type FieldOrderBy = OrderDirection | OrderBy; | ||
interface OrderByFields { | ||
[fieldName: string]: FieldOrderBy; | ||
type FieldOrderBy<T = OrderDirection> = T | OrderBy; | ||
interface OrderByFields<T = OrderDirection> { | ||
[fieldName: string]: FieldOrderBy<T>; | ||
} | ||
type OrderBy = OrderByFields & { | ||
type OrderBy<T = OrderDirection> = OrderByFields<T> & { | ||
_random?: boolean; | ||
@@ -110,0 +110,0 @@ _randomSeeded?: number; |
{ | ||
"name": "@contember/schema", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"license": "Apache-2.0", | ||
@@ -11,3 +11,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "53817a2fea724a43b3ac5b5184df4e9af41ef3ac" | ||
"gitHead": "eb80d5f7d1428080127bd75d1cd9638120ffc054" | ||
} |
@@ -133,9 +133,10 @@ import Value from './value' | ||
export type FieldOrderBy = OrderDirection | OrderBy | ||
// generics required by admin | ||
export type FieldOrderBy<T = OrderDirection> = T | OrderBy | ||
export interface OrderByFields { | ||
[fieldName: string]: FieldOrderBy | ||
export interface OrderByFields<T = OrderDirection> { | ||
[fieldName: string]: FieldOrderBy<T> | ||
} | ||
export type OrderBy = OrderByFields & { _random?: boolean; _randomSeeded?: number } | ||
export type OrderBy<T = OrderDirection> = OrderByFields<T> & { _random?: boolean; _randomSeeded?: number } | ||
@@ -142,0 +143,0 @@ export interface Condition<T = Value.FieldValue> { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
183996
1296