@wopjs/cast 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/index.d.mts CHANGED
@@ -127,8 +127,8 @@ declare function inertFilter<T>(arr: T[] | undefined, predicate: (value: T, inde
127
127
  declare function inertFilter<T>(arr: readonly T[], predicate: (value: T, index: number, arr: readonly T[]) => boolean, thisArg?: any): readonly T[];
128
128
  declare function inertFilter<T>(arr: readonly T[] | undefined, predicate: (value: T, index: number, arr: readonly T[]) => boolean, thisArg?: any): readonly T[] | undefined;
129
129
  interface Coalesce {
130
- <T>(arr: readonly T[]): readonly Truthy<T>[];
131
130
  <T>(arr: T[]): Truthy<T>[];
131
+ <T>(arr: readonly T[]): readonly Truthy<T>[];
132
132
  }
133
133
  /**
134
134
  * @returns the same array if all its items are truthy, otherwise a new array with all falsy items removed.
package/dist/index.d.ts CHANGED
@@ -127,8 +127,8 @@ declare function inertFilter<T>(arr: T[] | undefined, predicate: (value: T, inde
127
127
  declare function inertFilter<T>(arr: readonly T[], predicate: (value: T, index: number, arr: readonly T[]) => boolean, thisArg?: any): readonly T[];
128
128
  declare function inertFilter<T>(arr: readonly T[] | undefined, predicate: (value: T, index: number, arr: readonly T[]) => boolean, thisArg?: any): readonly T[] | undefined;
129
129
  interface Coalesce {
130
- <T>(arr: readonly T[]): readonly Truthy<T>[];
131
130
  <T>(arr: T[]): Truthy<T>[];
131
+ <T>(arr: readonly T[]): readonly Truthy<T>[];
132
132
  }
133
133
  /**
134
134
  * @returns the same array if all its items are truthy, otherwise a new array with all falsy items removed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopjs/cast",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Type-safe utilities for filtering and coercing unknown values in TypeScript.",
5
5
  "repository": "wopjs/cast",
6
6
  "main": "./dist/index.js",
package/src/array.ts CHANGED
@@ -119,8 +119,8 @@ export function inertFilter<T>(
119
119
  }
120
120
 
121
121
  export interface Coalesce {
122
- <T>(arr: readonly T[]): readonly Truthy<T>[];
123
122
  <T>(arr: T[]): Truthy<T>[];
123
+ <T>(arr: readonly T[]): readonly Truthy<T>[];
124
124
  }
125
125
 
126
126
  /**