@w3ux/utils 2.0.0 → 2.0.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/unit.d.cts +1 -2
  3. package/unit.d.ts +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w3ux/utils",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "license": "GPL-3.0-only",
5
5
  "dependencies": {
6
6
  "@polkadot-api/substrate-bindings": "^0.9.3"
package/unit.d.cts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { MutableRefObject, RefObject } from 'react';
2
2
  import { AnyObject } from './types.cjs';
3
- import { AnyJson } from '@w3ux/types';
4
3
 
5
4
  /**
6
5
  * Converts an on-chain balance value from planck to a decimal value in token units.
@@ -81,7 +80,7 @@ declare const removeVarFromUrlHash: (key: string) => void;
81
80
  * @name sortWithNull
82
81
  * @summary Sorts an array with nulls last.
83
82
  */
84
- declare const sortWithNull: (ascending: boolean) => (a: AnyJson, b: AnyJson) => 0 | 1 | -1;
83
+ declare const sortWithNull: (ascending: boolean) => (a: unknown, b: unknown) => 0 | 1 | -1;
85
84
  /**
86
85
  * @name applyWidthAsPadding
87
86
  * @summary Applies width of subject to paddingRight of container.
package/unit.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { MutableRefObject, RefObject } from 'react';
2
2
  import { AnyObject } from './types.js';
3
- import { AnyJson } from '@w3ux/types';
4
3
 
5
4
  /**
6
5
  * Converts an on-chain balance value from planck to a decimal value in token units.
@@ -81,7 +80,7 @@ declare const removeVarFromUrlHash: (key: string) => void;
81
80
  * @name sortWithNull
82
81
  * @summary Sorts an array with nulls last.
83
82
  */
84
- declare const sortWithNull: (ascending: boolean) => (a: AnyJson, b: AnyJson) => 0 | 1 | -1;
83
+ declare const sortWithNull: (ascending: boolean) => (a: unknown, b: unknown) => 0 | 1 | -1;
85
84
  /**
86
85
  * @name applyWidthAsPadding
87
86
  * @summary Applies width of subject to paddingRight of container.