@w3ux/utils 2.0.0 → 2.0.1
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/package.json +1 -1
- package/unit.d.cts +1 -2
- package/unit.d.ts +1 -2
package/package.json
CHANGED
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:
|
|
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:
|
|
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.
|