@lodestar/utils 1.21.0-dev.9103f5655b → 1.21.0-dev.acbedaf140
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/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +6 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export * from "./notNullish.js";
|
|
|
16
16
|
export * from "./sleep.js";
|
|
17
17
|
export * from "./sort.js";
|
|
18
18
|
export * from "./timeout.js";
|
|
19
|
-
export { type RecursivePartial, bnToNum } from "./types.js";
|
|
19
|
+
export { type RecursivePartial, bnToNum, type RequiredSelective } from "./types.js";
|
|
20
20
|
export * from "./url.js";
|
|
21
21
|
export * from "./verifyMerkleBranch.js";
|
|
22
22
|
export * from "./promise.js";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAC,KAAK,EAAoB,MAAM,YAAY,CAAC;AACpD,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAwB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAC,KAAK,EAAoB,MAAM,YAAY,CAAC;AACpD,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAwB,OAAO,EAAyB,MAAM,YAAY,CAAC;AAClF,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC"}
|
package/lib/types.d.ts
CHANGED
|
@@ -16,4 +16,10 @@ export type NonEmptyArray<T> = [T, ...T[]];
|
|
|
16
16
|
export type ArrayToTuple<Tuple extends NonEmptyArray<unknown>> = {
|
|
17
17
|
[Index in keyof Tuple]: Tuple[Index];
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Convert optional attributes of an object to required
|
|
21
|
+
*/
|
|
22
|
+
export type RequiredSelective<T, Keys extends keyof T> = T & {
|
|
23
|
+
[K in Keys]-?: T[K];
|
|
24
|
+
};
|
|
19
25
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.21.0-dev.
|
|
14
|
+
"version": "1.21.0-dev.acbedaf140",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": "./lib/index.js",
|
|
17
17
|
"files": [
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"beacon",
|
|
57
57
|
"blockchain"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "efe085f4ec0d21b1585d0388166ae67ee0fd78bc"
|
|
60
60
|
}
|