@oscarpalmer/atoms 0.63.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 +3 -3
- 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 +1608 -90
- 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
|
@@ -175,12 +175,12 @@
|
|
|
175
175
|
"clean": "rm -rf ./dist && rm -rf ./types && rm -f ./tsconfig.tsbuildinfo",
|
|
176
176
|
"test": "bun test",
|
|
177
177
|
"types": "bun run types:cjs && bun run types:esm",
|
|
178
|
-
"types:cjs": "bunx dts-bundle-generator --out-file ./types/index.d.cts --no-check --silent ./src/js/index.ts",
|
|
178
|
+
"types:cjs": "bunx dts-bundle-generator --out-file ./types/index.d.cts --external-inlines 'type-fest' --no-check --silent ./src/js/index.ts",
|
|
179
179
|
"types:esm": "bunx tsc -p ./tsconfig.json",
|
|
180
180
|
"watch:css": "bunx sass ./src/css:./dist/css --no-source-map --watch",
|
|
181
181
|
"watch:js": "bun build ./src/js/index.ts --outfile ./dist/js/index.js --watch"
|
|
182
182
|
},
|
|
183
183
|
"type": "module",
|
|
184
|
-
"types": "./types/index.d.
|
|
185
|
-
"version": "0.
|
|
184
|
+
"types": "./types/index.d.cts",
|
|
185
|
+
"version": "0.65.0"
|
|
186
186
|
}
|
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<{
|