@kyco-utils/types 0.1.2 → 0.1.3
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.cts +9 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.mts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The thousands and decimal separators used to format numbers.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import type { NumberSeparators } from '@kyco-utils/types'
|
|
7
|
+
*
|
|
8
|
+
* const separators: NumberSeparators = { thousandsSeparator: '.', decimalSeparator: ',' }
|
|
9
|
+
* ```
|
|
3
10
|
*/
|
|
4
11
|
export type NumberSeparators = {
|
|
12
|
+
/** Groups digits, e.g. `,` in `12,345`. */
|
|
5
13
|
thousandsSeparator: string;
|
|
14
|
+
/** Separates the fraction, e.g. `.` in `12.5`. */
|
|
6
15
|
decimalSeparator: string;
|
|
7
16
|
};
|
|
8
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;YAUY;;EAEV;;EAEA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The thousands and decimal separators used to format numbers.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import type { NumberSeparators } from '@kyco-utils/types'
|
|
7
|
+
*
|
|
8
|
+
* const separators: NumberSeparators = { thousandsSeparator: '.', decimalSeparator: ',' }
|
|
9
|
+
* ```
|
|
3
10
|
*/
|
|
4
11
|
export type NumberSeparators = {
|
|
12
|
+
/** Groups digits, e.g. `,` in `12,345`. */
|
|
5
13
|
thousandsSeparator: string;
|
|
14
|
+
/** Separates the fraction, e.g. `.` in `12.5`. */
|
|
6
15
|
decimalSeparator: string;
|
|
7
16
|
};
|
|
8
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;YAUY;;EAEV;;EAEA"}
|