@rwillians/qx 0.1.12 → 0.1.13
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/cjs/index.js +15 -0
- package/dist/esm/index.js +15 -0
- package/dist/types/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -290,6 +290,21 @@ const expr = {
|
|
|
290
290
|
* @version 1
|
|
291
291
|
*/
|
|
292
292
|
not: (expr) => ({ not: expr }),
|
|
293
|
+
// // // // // // // // // // // // // // // // // // // // // // //
|
|
294
|
+
// SEMANTICS ONLY //
|
|
295
|
+
// // // // // // // // // // // // // // // // // // // // // // //
|
|
296
|
+
/**
|
|
297
|
+
* @public Builds an ascending order expression.
|
|
298
|
+
* @since 0.1.13
|
|
299
|
+
* @version 1
|
|
300
|
+
*/
|
|
301
|
+
asc: (expr) => [expr, 'ASC'],
|
|
302
|
+
/**
|
|
303
|
+
* @public Builds a descending order expression.
|
|
304
|
+
* @since 0.1.13
|
|
305
|
+
* @version 1
|
|
306
|
+
*/
|
|
307
|
+
desc: (expr) => [expr, 'DESC'],
|
|
293
308
|
};
|
|
294
309
|
exports.expr = expr;
|
|
295
310
|
/**
|
package/dist/esm/index.js
CHANGED
|
@@ -285,6 +285,21 @@ const expr = {
|
|
|
285
285
|
* @version 1
|
|
286
286
|
*/
|
|
287
287
|
not: (expr) => ({ not: expr }),
|
|
288
|
+
// // // // // // // // // // // // // // // // // // // // // // //
|
|
289
|
+
// SEMANTICS ONLY //
|
|
290
|
+
// // // // // // // // // // // // // // // // // // // // // // //
|
|
291
|
+
/**
|
|
292
|
+
* @public Builds an ascending order expression.
|
|
293
|
+
* @since 0.1.13
|
|
294
|
+
* @version 1
|
|
295
|
+
*/
|
|
296
|
+
asc: (expr) => [expr, 'ASC'],
|
|
297
|
+
/**
|
|
298
|
+
* @public Builds a descending order expression.
|
|
299
|
+
* @since 0.1.13
|
|
300
|
+
* @version 1
|
|
301
|
+
*/
|
|
302
|
+
desc: (expr) => [expr, 'DESC'],
|
|
288
303
|
};
|
|
289
304
|
/**
|
|
290
305
|
* @public Expression type guards.
|
package/dist/types/index.d.ts
CHANGED
|
@@ -650,6 +650,18 @@ declare const expr: {
|
|
|
650
650
|
* @version 1
|
|
651
651
|
*/
|
|
652
652
|
not: <E extends Expr>(expr: E) => ExprNot;
|
|
653
|
+
/**
|
|
654
|
+
* @public Builds an ascending order expression.
|
|
655
|
+
* @since 0.1.13
|
|
656
|
+
* @version 1
|
|
657
|
+
*/
|
|
658
|
+
asc: (expr: Expr) => readonly [Expr, "ASC"];
|
|
659
|
+
/**
|
|
660
|
+
* @public Builds a descending order expression.
|
|
661
|
+
* @since 0.1.13
|
|
662
|
+
* @version 1
|
|
663
|
+
*/
|
|
664
|
+
desc: (expr: Expr) => readonly [Expr, "DESC"];
|
|
653
665
|
};
|
|
654
666
|
/**
|
|
655
667
|
* @public Expression type guards.
|