@valkyriestudios/utils 12.17.1 → 12.17.2

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/array/sort.d.ts CHANGED
@@ -60,5 +60,5 @@ type sortByFunction = (el: Record<string, any>) => string;
60
60
  */
61
61
  declare function sort<T extends {
62
62
  [key: string]: any;
63
- }[]>(arr: T, by: string | sortByFunction, dir?: 'asc' | 'desc', opts?: sortOptions<T>): T;
63
+ }>(arr: T[], by: string | sortByFunction, dir?: 'asc' | 'desc', opts?: sortOptions<T>): T[];
64
64
  export { sort, sort as default };
package/index.d.ts CHANGED
@@ -100,7 +100,7 @@ declare module "array/sort" {
100
100
  type sortByFunction = (el: Record<string, any>) => string;
101
101
  function sort<T extends {
102
102
  [key: string]: any;
103
- }[]>(arr: T, by: string | sortByFunction, dir?: 'asc' | 'desc', opts?: sortOptions<T>): T;
103
+ }>(arr: T[], by: string | sortByFunction, dir?: 'asc' | 'desc', opts?: sortOptions<T>): T[];
104
104
  export { sort, sort as default };
105
105
  }
106
106
  declare module "array/index" {
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@valkyriestudios/utils", "version": "12.17.1", "description": "A collection of single-function utilities for common tasks", "author": { "name": "Peter Vermeulen", "url": "https://www.linkedin.com/in/petervermeulen1/" }, "keywords": [ "utility", "library", "javascript", "js", "node", "bun" ], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ValkyrieStudios/utils.git" }, "bugs": { "url": "https://github.com/ValkyrieStudios/utils/issues" }, "homepage": "https://github.com/ValkyrieStudios/utils#readme", "types": "index.d.ts" }
1
+ { "name": "@valkyriestudios/utils", "version": "12.17.2", "description": "A collection of single-function utilities for common tasks", "author": { "name": "Peter Vermeulen", "url": "https://www.linkedin.com/in/petervermeulen1/" }, "keywords": [ "utility", "library", "javascript", "js", "node", "bun" ], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/ValkyrieStudios/utils.git" }, "bugs": { "url": "https://github.com/ValkyrieStudios/utils/issues" }, "homepage": "https://github.com/ValkyrieStudios/utils#readme", "types": "index.d.ts" }