@oscarpalmer/atoms 0.64.0 → 0.65.0
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/src/js/models.ts +0 -2
- package/src/js/value/get.ts +2 -1
- package/src/js/value/smush.ts +2 -1
- package/types/index.d.cts +723 -283
- package/types/models.d.ts +0 -1
- package/types/value/get.d.ts +2 -1
- package/types/value/smush.d.ts +2 -1
package/package.json
CHANGED
package/src/js/models.ts
CHANGED
|
@@ -29,8 +29,6 @@ export type Key = number | string;
|
|
|
29
29
|
|
|
30
30
|
export type PlainObject = UnknownRecord;
|
|
31
31
|
|
|
32
|
-
export type ToString<T> = T extends string | number ? `${T}` : never;
|
|
33
|
-
|
|
34
32
|
export type UnknownArrayOrRecord = UnknownArray | UnknownRecord;
|
|
35
33
|
|
|
36
34
|
export type {Get, Paths, Primitive, UnknownArray, UnknownRecord};
|
package/src/js/value/get.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type {ToString} from 'type-fest/source/internal/string';
|
|
1
2
|
import {handleValue} from '../internal/value-handle';
|
|
2
|
-
import type {Get, Paths, PlainObject
|
|
3
|
+
import type {Get, Paths, PlainObject} from '../models';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* - Get the value from an object using a known path
|
package/src/js/value/smush.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type {Get, Paths, Simplify} from 'type-fest';
|
|
2
|
+
import type {ToString} from 'type-fest/source/internal/string';
|
|
2
3
|
import {isArrayOrPlainObject} from '../is';
|
|
3
|
-
import type {ArrayOrPlainObject, PlainObject
|
|
4
|
+
import type {ArrayOrPlainObject, PlainObject} from '../models';
|
|
4
5
|
import {join} from '../string';
|
|
5
6
|
|
|
6
7
|
type Smushed<Value> = Simplify<{
|