@infra-blocks/types 0.9.0 → 0.10.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/lib/cjs/index.d.ts +6 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +6 -0
- package/lib/esm/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cjs/index.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export type EnvVars = EnvironmentVariables;
|
|
|
15
15
|
* Semantically the opposite of {@link NonNullable}.
|
|
16
16
|
*/
|
|
17
17
|
export type Nullable<T> = T | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Convenient mapped type to selectively make some fields of a type optional.
|
|
20
|
+
*
|
|
21
|
+
* This is in contrast to the built-in `Partial` type which makes all fields optional.
|
|
22
|
+
*/
|
|
23
|
+
export type Optional<T, K extends keyof T = keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
|
18
24
|
/**
|
|
19
25
|
* A convenience type extractor to get the inner type of an array.
|
|
20
26
|
*
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAsD5B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,KAAK,CAAC;AACf,CAAC;AAFD,kCAEC"}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export type EnvVars = EnvironmentVariables;
|
|
|
15
15
|
* Semantically the opposite of {@link NonNullable}.
|
|
16
16
|
*/
|
|
17
17
|
export type Nullable<T> = T | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Convenient mapped type to selectively make some fields of a type optional.
|
|
20
|
+
*
|
|
21
|
+
* This is in contrast to the built-in `Partial` type which makes all fields optional.
|
|
22
|
+
*/
|
|
23
|
+
export type Optional<T, K extends keyof T = keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
|
18
24
|
/**
|
|
19
25
|
* A convenience type extractor to get the inner type of an array.
|
|
20
26
|
*
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAsD5B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,WAAW,CAAC,KAAY;IACtC,OAAO,KAAK,CAAC;AACf,CAAC"}
|