@code-essentials/utils 1.0.8 → 1.0.10
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/types.d.ts +1 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type Deleteable<T, K extends keyof T = keyof T> = {
|
|
|
4
4
|
export type PartlyDeleteable<T, K extends keyof T> = {
|
|
5
5
|
[K1 in keyof T as (K1 extends K ? never : K1)]: T[K1];
|
|
6
6
|
} & Deleteable<T, K>;
|
|
7
|
+
export type PartiallyPartial<T, K extends keyof T> = Omit<T, K> & Deleteable<Pick<T, K>>;
|
|
7
8
|
export type UndefinedIf<T, Condition extends boolean = boolean> = Condition extends true ? undefined : T;
|
|
8
9
|
export declare function undefinedIf<T, Condition extends boolean = boolean>(condition: Condition, item: () => T): UndefinedIf<T, Condition>;
|
|
9
10
|
export type Prefixed<Prefix extends string, T extends object> = {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-essentials/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist
|
|
9
|
+
"dist"
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@ava/typescript": "^6.0.0",
|