@frontstackdev/cli 0.0.0-canary-20250714111725 → 0.0.0-canary-20250714135840

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.
@@ -50,17 +50,25 @@ export type EqualsFilter<T> = {
50
50
  * to: 100
51
51
  * }
52
52
  */
53
+
54
+ type RangeFilterShapes<K> = {
55
+ from: K
56
+ } | {
57
+ to: K
58
+ } | {
59
+ from: K
60
+ to: K
61
+ }
62
+
53
63
  export type RangeFilter<T> = {
54
64
  [K in NumericKeys<T>]: {
55
65
  type: 'range';
56
66
  field: K;
57
- from?: T[K];
58
- to?: T[K];
59
- }
67
+ } & RangeFilterShapes<T[K]>
60
68
  }[NumericKeys<T>];
61
69
 
62
70
  /**
63
- * Filter a field by a substring match.
71
+ * Filter a field by a word match.
64
72
  *
65
73
  * @example
66
74
  * {
@@ -68,6 +76,10 @@ export type RangeFilter<T> = {
68
76
  * field: 'name',
69
77
  * value: 'Dress'
70
78
  * }
79
+ *
80
+ * will match:
81
+ *
82
+ * - 'Yellow Dress'
71
83
  */
72
84
  export type ContainsFilter<T> = {
73
85
  [K in StringKeys<T>]: {
package/dist/version CHANGED
@@ -1 +1 @@
1
- 0.0.0-canary-20250714111725
1
+ 0.0.0-canary-20250714135840
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontstackdev/cli",
3
- "version": "0.0.0-canary-20250714111725",
3
+ "version": "0.0.0-canary-20250714135840",
4
4
  "description": "frontstack CLI for managing projects",
5
5
  "type": "module",
6
6
  "module": "dist/frontstack.mjs",