@voiceflow/common 6.8.0 → 6.8.1
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/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/types.d.ts +24 -0
- package/build/types.js +3 -0
- package/build/types.js.map +1 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -25,5 +25,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.Crypto = void 0;
|
|
26
26
|
__exportStar(require("./constants"), exports);
|
|
27
27
|
exports.Crypto = __importStar(require("./crypto"));
|
|
28
|
+
__exportStar(require("./types"), exports);
|
|
28
29
|
__exportStar(require("./utils"), exports);
|
|
29
30
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAmC;AACnC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,mDAAmC;AACnC,0CAAwB;AACxB,0CAAwB"}
|
package/build/types.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare type Nullable<T> = T | null;
|
|
2
|
+
export declare type Nullish<T> = Nullable<T> | undefined;
|
|
3
|
+
export declare type Function<A extends any[] = any[], R = any> = (...args: A) => R;
|
|
4
|
+
export declare type AnyFunction = Function<any[], any>;
|
|
5
|
+
export declare type Callback = Function<[], Eventual<void>>;
|
|
6
|
+
export declare type Eventual<T> = Promise<T> | T;
|
|
7
|
+
export declare type StringifyEnum<T extends string> = T | `${T}`;
|
|
8
|
+
export declare type NormalizedValue<T> = T extends Normalized<infer R> ? R : never;
|
|
9
|
+
export interface Normalized<T> {
|
|
10
|
+
byKey: Record<string, T>;
|
|
11
|
+
allKeys: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare type WithOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
14
|
+
export declare type WithRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|
|
15
|
+
export declare type Writeable<T> = {
|
|
16
|
+
-readonly [P in keyof T]: T[P];
|
|
17
|
+
};
|
|
18
|
+
export declare type NullableRecord<T extends object> = {
|
|
19
|
+
[K in keyof T]: Nullable<T[K]>;
|
|
20
|
+
};
|
|
21
|
+
export declare type NonNullishRecord<T extends object> = Required<{
|
|
22
|
+
[K in keyof T]: Exclude<T[K], null>;
|
|
23
|
+
}>;
|
|
24
|
+
export declare type Struct = Record<string, unknown>;
|
package/build/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|