elseware-nodejs 1.8.3 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1818,7 +1818,9 @@ declare const GlobalErrorHandler: (isProd?: boolean) => (err: unknown, _req: Req
|
|
|
1818
1818
|
declare const validate: (schema: Schema) => (req: Request, _res: Response, next: NextFunction) => void;
|
|
1819
1819
|
|
|
1820
1820
|
type Filter<T> = Partial<Record<keyof T, unknown>>;
|
|
1821
|
-
type
|
|
1821
|
+
type Field<T> = Extract<keyof T, string>;
|
|
1822
|
+
type PrefixedField<T> = `+${Field<T>}` | `-${Field<T>}`;
|
|
1823
|
+
type Select<T> = (Field<T> | PrefixedField<T>)[] | Partial<Record<Field<T>, 0 | 1>>;
|
|
1822
1824
|
type Sort<T> = Partial<Record<keyof T, 1 | -1>>;
|
|
1823
1825
|
|
|
1824
1826
|
interface IQueryOptions<T> {
|
package/dist/index.d.ts
CHANGED
|
@@ -1818,7 +1818,9 @@ declare const GlobalErrorHandler: (isProd?: boolean) => (err: unknown, _req: Req
|
|
|
1818
1818
|
declare const validate: (schema: Schema) => (req: Request, _res: Response, next: NextFunction) => void;
|
|
1819
1819
|
|
|
1820
1820
|
type Filter<T> = Partial<Record<keyof T, unknown>>;
|
|
1821
|
-
type
|
|
1821
|
+
type Field<T> = Extract<keyof T, string>;
|
|
1822
|
+
type PrefixedField<T> = `+${Field<T>}` | `-${Field<T>}`;
|
|
1823
|
+
type Select<T> = (Field<T> | PrefixedField<T>)[] | Partial<Record<Field<T>, 0 | 1>>;
|
|
1822
1824
|
type Sort<T> = Partial<Record<keyof T, 1 | -1>>;
|
|
1823
1825
|
|
|
1824
1826
|
interface IQueryOptions<T> {
|