@tramvai/module-child-app 5.15.2 → 5.16.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/export.d.ts +6 -6
- package/package.json +11 -11
package/lib/export.d.ts
CHANGED
|
@@ -16,18 +16,18 @@ declare const errorTag: unique symbol;
|
|
|
16
16
|
export type TypesError<T> = {
|
|
17
17
|
[errorTag]: T;
|
|
18
18
|
};
|
|
19
|
-
/**
|
|
20
|
-
* expand generic types one level down (in error message)
|
|
21
|
-
*/
|
|
22
|
-
type Prettify<T> = T extends Record<string, any> ? {} & {
|
|
23
|
-
[P in keyof T]: T[P];
|
|
24
|
-
} : {} & T;
|
|
25
19
|
/**
|
|
26
20
|
* exclude keys with `never` value from records
|
|
27
21
|
*/
|
|
28
22
|
type OmitNever<T> = {
|
|
29
23
|
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
30
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* expand generic types one level down (in error message)
|
|
27
|
+
*/
|
|
28
|
+
type Prettify<T> = T extends Record<string, any> ? {} & {
|
|
29
|
+
[P in keyof T]: T[P];
|
|
30
|
+
} : {} & T;
|
|
31
31
|
/**
|
|
32
32
|
* validate required and provided contracts, `TypesError` returns on failure
|
|
33
33
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-child-app",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.16.0",
|
|
4
4
|
"description": "Module for child apps",
|
|
5
5
|
"browser": {
|
|
6
6
|
"./lib/server.js": "./lib/browser.js",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"@tinkoff/env-validators": "0.4.2",
|
|
34
34
|
"@tinkoff/module-loader-client": "0.7.3",
|
|
35
35
|
"@tinkoff/module-loader-server": "0.8.4",
|
|
36
|
-
"@tramvai/module-common": "5.
|
|
36
|
+
"@tramvai/module-common": "5.16.0",
|
|
37
37
|
"@tinkoff/url": "0.11.2",
|
|
38
|
-
"@tramvai/child-app-core": "5.
|
|
38
|
+
"@tramvai/child-app-core": "5.16.0",
|
|
39
39
|
"@tramvai/safe-strings": "0.8.4",
|
|
40
|
-
"@tramvai/tokens-child-app": "5.
|
|
40
|
+
"@tramvai/tokens-child-app": "5.16.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@tinkoff/dippy": "0.11.3",
|
|
45
|
-
"@tinkoff/router": "0.5.
|
|
45
|
+
"@tinkoff/router": "0.5.52",
|
|
46
46
|
"@tinkoff/utils": "^2.1.2",
|
|
47
|
-
"@tramvai/core": "5.
|
|
48
|
-
"@tramvai/state": "5.
|
|
49
|
-
"@tramvai/react": "5.
|
|
50
|
-
"@tramvai/tokens-common": "5.
|
|
51
|
-
"@tramvai/tokens-render": "5.
|
|
52
|
-
"@tramvai/tokens-router": "5.
|
|
47
|
+
"@tramvai/core": "5.16.0",
|
|
48
|
+
"@tramvai/state": "5.16.0",
|
|
49
|
+
"@tramvai/react": "5.16.0",
|
|
50
|
+
"@tramvai/tokens-common": "5.16.0",
|
|
51
|
+
"@tramvai/tokens-render": "5.16.0",
|
|
52
|
+
"@tramvai/tokens-router": "5.16.0",
|
|
53
53
|
"react": ">=16.14.0",
|
|
54
54
|
"react-dom": ">=16.14.0",
|
|
55
55
|
"object-assign": "^4.1.1",
|