@ninetailed/experience.js 1.0.1-beta.19 → 1.0.1-beta.20
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/index.esm.js +1 -1
- package/index.umd.js +1 -1
- package/lib/selectVariant.d.ts +3 -1
- package/package.json +2 -2
package/index.esm.js
CHANGED
package/index.umd.js
CHANGED
package/lib/selectVariant.d.ts
CHANGED
|
@@ -31,5 +31,7 @@ declare type Fail<T> = {
|
|
|
31
31
|
error: Error;
|
|
32
32
|
};
|
|
33
33
|
declare type Result<T> = Loading<T> | Success<T> | Fail<T>;
|
|
34
|
-
export declare const selectVariant: <T
|
|
34
|
+
export declare const selectVariant: <T extends {
|
|
35
|
+
id: string;
|
|
36
|
+
}>(baseline: T, variants: Variant<T>[], { loading, profile, error }: ProfileState, options?: Options) => Result<T>;
|
|
35
37
|
export {};
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.20",
|
|
4
4
|
"main": "./index.umd.js",
|
|
5
5
|
"module": "./index.esm.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@ninetailed/experience.js-shared": "1.0.1-beta.
|
|
8
|
+
"@ninetailed/experience.js-shared": "1.0.1-beta.20",
|
|
9
9
|
"uuid": "^8.3.2",
|
|
10
10
|
"ts-toolbelt": "^9.6.0",
|
|
11
11
|
"locale-enum": "^1.1.1",
|