hotypes 0.4.1 → 0.4.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/README.md +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +6 -1
- package/lib/index.js.map +1 -1
- package/lib/keys-extend-type.d.ts +1 -1
- package/lib/mixin.d.ts +1 -0
- package/lib/mixin.js +3 -0
- package/lib/mixin.js.map +1 -0
- package/package.json +13 -14
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
@@ -14,6 +14,7 @@ export * from './map-props-by-type';
|
|
14
14
|
export * from './map-props-by-key-to-optional';
|
15
15
|
export * from './map-props-extend-type';
|
16
16
|
export * from './map-props-to-non-nullable';
|
17
|
+
export * from './mixin';
|
17
18
|
export * from './non-nullable-keys';
|
18
19
|
export * from './nullable-keys';
|
19
20
|
export * from './omit-props-by-type';
|
package/lib/index.js
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
3
|
if (k2 === undefined) k2 = k;
|
4
|
-
Object.
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
5
9
|
}) : (function(o, m, k, k2) {
|
6
10
|
if (k2 === undefined) k2 = k;
|
7
11
|
o[k2] = m[k];
|
@@ -26,6 +30,7 @@ __exportStar(require("./map-props-by-type"), exports);
|
|
26
30
|
__exportStar(require("./map-props-by-key-to-optional"), exports);
|
27
31
|
__exportStar(require("./map-props-extend-type"), exports);
|
28
32
|
__exportStar(require("./map-props-to-non-nullable"), exports);
|
33
|
+
__exportStar(require("./mixin"), exports);
|
29
34
|
__exportStar(require("./non-nullable-keys"), exports);
|
30
35
|
__exportStar(require("./nullable-keys"), exports);
|
31
36
|
__exportStar(require("./omit-props-by-type"), exports);
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,kDAA+B;AAC/B,yCAAsB;AACtB,iDAA8B;AAC9B,yDAAsC;AACtC,6DAA0C;AAC1C,qDAAkC;AAClC,yCAAsB;AACtB,4EAAyD;AACzD,mEAAgD;AAChD,qEAAkD;AAClD,qDAAkC;AAClC,sDAAmC;AACnC,iEAA8C;AAC9C,0DAAuC;AACvC,8DAA2C;AAC3C,0CAAuB;AACvB,sDAAmC;AACnC,kDAA+B;AAC/B,uDAAoC;AACpC,2DAAwC;AACxC,kDAA+B;AAC/B,mDAAgC;AAChC,yDAAsC;AACtC,0DAAuC;AACvC,iDAA8B;AAC9B,+DAA4C;AAC5C,yCAAsB;AACtB,iDAA8B"}
|
package/lib/mixin.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export declare type Mixin<Base, Other> = Pick<Base, Exclude<keyof Base, keyof Other>> & Other;
|
package/lib/mixin.js
ADDED
package/lib/mixin.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mixin.js","sourceRoot":"","sources":["../src/mixin.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hotypes",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.4",
|
4
4
|
"description": "Higher order types for TypeScript",
|
5
5
|
"keywords": [
|
6
6
|
"higher-order",
|
@@ -36,22 +36,21 @@
|
|
36
36
|
}
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@
|
40
|
-
"@commitlint/
|
41
|
-
"@
|
42
|
-
"@
|
43
|
-
"@typescript-eslint/
|
44
|
-
"eslint": "^
|
39
|
+
"@blackglory/pass": "^1.0.0",
|
40
|
+
"@commitlint/cli": "^16.2.3",
|
41
|
+
"@commitlint/config-conventional": "^16.2.1",
|
42
|
+
"@types/jest": "^27.4.1",
|
43
|
+
"@typescript-eslint/eslint-plugin": "^5.15.0",
|
44
|
+
"@typescript-eslint/parser": "^5.15.0",
|
45
|
+
"eslint": "^8.11.0",
|
45
46
|
"husky": "^4.3.8",
|
46
|
-
"jest": "^27.
|
47
|
-
"jest-extended": "^0.11.5",
|
47
|
+
"jest": "^27.5.1",
|
48
48
|
"npm-run-all": "^4.1.5",
|
49
49
|
"rimraf": "^3.0.2",
|
50
|
-
"standard-version": "^9.3.
|
51
|
-
"ts-jest": "^27.
|
50
|
+
"standard-version": "^9.3.2",
|
51
|
+
"ts-jest": "^27.1.3",
|
52
52
|
"tscpaths": "^0.0.9",
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"typescript": "^4.3.5"
|
53
|
+
"tslib": "^2.3.1",
|
54
|
+
"typescript": "^4.6.2"
|
56
55
|
}
|
57
56
|
}
|