ts-gems 3.11.2 → 3.11.4
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/lib/dto.d.ts +1 -1
- package/lib/index.d.ts +22 -22
- package/package.json +16 -19
- package/lib/index.cjs +0 -16
- /package/lib/{index.mjs → index.js} +0 -0
package/lib/dto.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { IfNever } from './type-check.js';
|
|
|
9
9
|
*/
|
|
10
10
|
export type DTO<T> = {
|
|
11
11
|
[K in keyof T as IfNever<
|
|
12
|
-
Exclude<NonNullable<T[K]
|
|
12
|
+
Exclude<NonNullable<T[K]>, Function>,
|
|
13
13
|
never,
|
|
14
14
|
K
|
|
15
15
|
>]: NonNullable<T[K]> extends (infer U)[] // Deep process arrays
|
package/lib/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
// noinspection JSUnusedGlobalSymbols
|
|
2
2
|
|
|
3
|
-
import type { DeeperMutable, DeepMutable, Mutable } from './mutable';
|
|
4
|
-
import type { DeeperPartial, DeepPartial } from './partial';
|
|
5
|
-
import type { DeeperReadonly, DeepReadonly } from './readonly';
|
|
6
|
-
import type { DeeperRequired, DeepRequired } from './required';
|
|
7
|
-
|
|
8
|
-
export type * from './combine';
|
|
9
|
-
export type * from './dto';
|
|
10
|
-
export type * from './helpers';
|
|
11
|
-
export type * from './logical';
|
|
12
|
-
export type * from './mutable';
|
|
13
|
-
export type * from './non-nullable';
|
|
14
|
-
export type * from './nullish';
|
|
15
|
-
export type * from './omit';
|
|
16
|
-
export type * from './omit-never';
|
|
17
|
-
export type * from './omit-undefined';
|
|
18
|
-
export type * from './opaque';
|
|
19
|
-
export type * from './partial';
|
|
20
|
-
export type * from './pick';
|
|
21
|
-
export type * from './readonly';
|
|
22
|
-
export type * from './required';
|
|
23
|
-
export type * from './type-check';
|
|
24
|
-
export type * from './types';
|
|
3
|
+
import type { DeeperMutable, DeepMutable, Mutable } from './mutable.js';
|
|
4
|
+
import type { DeeperPartial, DeepPartial } from './partial.js';
|
|
5
|
+
import type { DeeperReadonly, DeepReadonly } from './readonly.js';
|
|
6
|
+
import type { DeeperRequired, DeepRequired } from './required.js';
|
|
7
|
+
|
|
8
|
+
export type * from './combine.js';
|
|
9
|
+
export type * from './dto.js';
|
|
10
|
+
export type * from './helpers.js';
|
|
11
|
+
export type * from './logical.js';
|
|
12
|
+
export type * from './mutable.js';
|
|
13
|
+
export type * from './non-nullable.js';
|
|
14
|
+
export type * from './nullish.js';
|
|
15
|
+
export type * from './omit.js';
|
|
16
|
+
export type * from './omit-never.js';
|
|
17
|
+
export type * from './omit-undefined.js';
|
|
18
|
+
export type * from './opaque.js';
|
|
19
|
+
export type * from './partial.js';
|
|
20
|
+
export type * from './pick.js';
|
|
21
|
+
export type * from './readonly.js';
|
|
22
|
+
export type * from './required.js';
|
|
23
|
+
export type * from './type-check.js';
|
|
24
|
+
export type * from './types.js';
|
|
25
25
|
|
|
26
26
|
declare function asMutable<T>(x: T): Mutable<T>;
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-gems",
|
|
3
3
|
"description": "Valuable typing extensions for TypeScript",
|
|
4
|
-
"version": "3.11.
|
|
4
|
+
"version": "3.11.4",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"module": "./lib/index.js",
|
|
8
8
|
"types": "./lib/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./lib/index.mjs",
|
|
12
|
-
"require": "./lib/index.cjs",
|
|
13
|
-
"types": "./lib/index.d.ts"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
9
|
"repository": "git@github.com:panates/ts-gems.git",
|
|
17
10
|
"author": "Eray Hanoglu <e.hanoglu@panates.com>",
|
|
18
11
|
"scripts": {
|
|
@@ -25,15 +18,16 @@
|
|
|
25
18
|
"test": "npm run test:common && npm run test:nostrict"
|
|
26
19
|
},
|
|
27
20
|
"devDependencies": {
|
|
28
|
-
"@panates/eslint-config": "^
|
|
29
|
-
"@panates/eslint-config-ts": "^
|
|
30
|
-
"@panates/tsconfig": "^
|
|
31
|
-
"@types/jest": "^
|
|
21
|
+
"@panates/eslint-config": "^2.0.11",
|
|
22
|
+
"@panates/eslint-config-ts": "^2.0.11",
|
|
23
|
+
"@panates/tsconfig": "^2.0.11",
|
|
24
|
+
"@types/jest": "^30.0.0",
|
|
25
|
+
"globals": "^17.4.0",
|
|
32
26
|
"husky": "^9.1.7",
|
|
33
|
-
"jest": "^
|
|
34
|
-
"prettier": "^3.
|
|
35
|
-
"ts-jest": "^29.
|
|
36
|
-
"typescript": "^5.
|
|
27
|
+
"jest": "^30.3.0",
|
|
28
|
+
"prettier": "^3.8.1",
|
|
29
|
+
"ts-jest": "^29.4.6",
|
|
30
|
+
"typescript": "^5.9.3"
|
|
37
31
|
},
|
|
38
32
|
"files": [
|
|
39
33
|
"LICENSE",
|
|
@@ -50,5 +44,8 @@
|
|
|
50
44
|
"toolbelt",
|
|
51
45
|
"lodash",
|
|
52
46
|
"underscore"
|
|
53
|
-
]
|
|
47
|
+
],
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
54
51
|
}
|
package/lib/index.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const noOp = x => x;
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
asMutable: noOp,
|
|
5
|
-
asDeepMutable: noOp,
|
|
6
|
-
asDeeperMutable: noOp,
|
|
7
|
-
asReadonly: noOp,
|
|
8
|
-
asDeepReadonly: noOp,
|
|
9
|
-
asDeeperReadonly: noOp,
|
|
10
|
-
asPartial: noOp,
|
|
11
|
-
asDeepPartial: noOp,
|
|
12
|
-
asDeeperPartial: noOp,
|
|
13
|
-
asRequired: noOp,
|
|
14
|
-
asDeepRequired: noOp,
|
|
15
|
-
asDeeperRequired: noOp,
|
|
16
|
-
};
|
|
File without changes
|