@voiceflow/common 7.25.1 → 7.25.2
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/build/common/types.d.ts +5 -0
- package/build/esm/types.d.ts +5 -0
- package/package.json +2 -2
package/build/common/types.d.ts
CHANGED
|
@@ -38,3 +38,8 @@ export declare type ArrayUnionToIntersection<T extends ArrayLike<unknown>> = Saf
|
|
|
38
38
|
export declare type PrimitiveMap<T extends PropertyKey> = {
|
|
39
39
|
[P in T]: P;
|
|
40
40
|
};
|
|
41
|
+
export declare type Join<T extends any[]> = T extends [AnyRecord, ...infer R] ? T[0] & Join<R> : {};
|
|
42
|
+
export declare type Tuple<T1, T2> = [T1, T2];
|
|
43
|
+
export declare type TupleFirst<T> = T extends Tuple<infer R, any> ? R : never;
|
|
44
|
+
export declare type TupleSecond<T> = T extends Tuple<any, infer R> ? R : never;
|
|
45
|
+
export declare type Pair<T> = Tuple<T, T>;
|
package/build/esm/types.d.ts
CHANGED
|
@@ -38,3 +38,8 @@ export declare type ArrayUnionToIntersection<T extends ArrayLike<unknown>> = Saf
|
|
|
38
38
|
export declare type PrimitiveMap<T extends PropertyKey> = {
|
|
39
39
|
[P in T]: P;
|
|
40
40
|
};
|
|
41
|
+
export declare type Join<T extends any[]> = T extends [AnyRecord, ...infer R] ? T[0] & Join<R> : {};
|
|
42
|
+
export declare type Tuple<T1, T2> = [T1, T2];
|
|
43
|
+
export declare type TupleFirst<T> = T extends Tuple<infer R, any> ? R : never;
|
|
44
|
+
export declare type TupleSecond<T> = T extends Tuple<any, infer R> ? R : never;
|
|
45
|
+
export declare type Pair<T> = Tuple<T, T>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/common",
|
|
3
3
|
"description": "Junk drawer of utility functions",
|
|
4
|
-
"version": "7.25.
|
|
4
|
+
"version": "7.25.2",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"test:single": "NODE_ENV=test ts-mocha --paths --config config/tests/mocharc.yml",
|
|
77
77
|
"test:unit": "NODE_ENV=test nyc --report-dir=nyc_coverage_unit ts-mocha --paths --config config/tests/mocharc.yml 'tests/**/*.unit.ts'"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "13bae0c256520e18682b0b3f1e4c16693f092c68"
|
|
80
80
|
}
|