@akinon/app-shared 0.8.2-alpha.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/dist/cjs/events.d.ts +15 -9
- package/dist/cjs/events.d.ts.map +1 -1
- package/dist/cjs/events.js +7 -1
- package/dist/cjs/types.d.ts +4 -4
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/events.d.ts +15 -9
- package/dist/esm/events.d.ts.map +1 -1
- package/dist/esm/events.js +7 -1
- package/dist/esm/types.d.ts +4 -4
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +22 -18
package/dist/cjs/events.d.ts
CHANGED
|
@@ -5,63 +5,69 @@ export declare const EVENTS: {
|
|
|
5
5
|
*
|
|
6
6
|
* AppShell → AppClient
|
|
7
7
|
*/
|
|
8
|
-
SET_APP_ID:
|
|
8
|
+
readonly SET_APP_ID: "SET_APP_ID";
|
|
9
9
|
/**
|
|
10
10
|
* The event that is emitted when client applications
|
|
11
11
|
* sends their configuration to the AppShell.
|
|
12
12
|
*
|
|
13
13
|
* AppClient → AppShell
|
|
14
14
|
*/
|
|
15
|
-
SET_CONFIG:
|
|
15
|
+
readonly SET_CONFIG: "SET_CONFIG";
|
|
16
16
|
/**
|
|
17
17
|
* The event that is emitted when the AppShell sends
|
|
18
18
|
* data to the client application.
|
|
19
19
|
*
|
|
20
20
|
* AppShell → AppClient
|
|
21
21
|
*/
|
|
22
|
-
SET_DATA:
|
|
22
|
+
readonly SET_DATA: "SET_DATA";
|
|
23
23
|
/**
|
|
24
24
|
* The event that is emitted when client applications
|
|
25
25
|
* loads and sends their css height information to the AppShell.
|
|
26
26
|
*
|
|
27
27
|
* AppClient → AppShell
|
|
28
28
|
*/
|
|
29
|
-
SET_HEIGHT:
|
|
29
|
+
readonly SET_HEIGHT: "SET_HEIGHT";
|
|
30
30
|
/**
|
|
31
31
|
* The event that is emitted to client applications when params property
|
|
32
32
|
* passed to the PluginRenderer component is received or changed.
|
|
33
33
|
*
|
|
34
34
|
* AppShell → AppClient
|
|
35
35
|
*/
|
|
36
|
-
SET_PARAMS:
|
|
36
|
+
readonly SET_PARAMS: "SET_PARAMS";
|
|
37
37
|
/**
|
|
38
38
|
* The event that is emitted when client applications trigger
|
|
39
39
|
* custom actions defined on the AppShell.
|
|
40
40
|
*
|
|
41
41
|
* AppClient → AppShell
|
|
42
42
|
*/
|
|
43
|
-
INVOKE_ACTION:
|
|
43
|
+
readonly INVOKE_ACTION: "INVOKE_ACTION";
|
|
44
44
|
/**
|
|
45
45
|
* The event that is emitted when client applications trigger
|
|
46
46
|
* default actions defined on the AppShell.
|
|
47
47
|
*
|
|
48
48
|
* AppClient → AppShell
|
|
49
49
|
*/
|
|
50
|
-
INVOKE_DEFAULT_ACTION:
|
|
50
|
+
readonly INVOKE_DEFAULT_ACTION: "INVOKE_DEFAULT_ACTION";
|
|
51
51
|
/**
|
|
52
52
|
* The event that is emitted when client applications trigger
|
|
53
53
|
* navigation for their shell application.
|
|
54
54
|
*
|
|
55
55
|
* AppClient → AppShell
|
|
56
56
|
*/
|
|
57
|
-
NAVIGATE:
|
|
57
|
+
readonly NAVIGATE: "NAVIGATE";
|
|
58
58
|
/**
|
|
59
59
|
* The event that is emitted when shell applications trigger
|
|
60
60
|
* navigation for their child applications.
|
|
61
61
|
*
|
|
62
62
|
* AppShell → AppClient
|
|
63
63
|
*/
|
|
64
|
-
NAVIGATE_CHILD:
|
|
64
|
+
readonly NAVIGATE_CHILD: "NAVIGATE_CHILD";
|
|
65
|
+
/**
|
|
66
|
+
* The event that is emitted when the locale changes in the shell application.
|
|
67
|
+
*
|
|
68
|
+
* AppShell → AppClient
|
|
69
|
+
*/
|
|
70
|
+
readonly LOCALE_CHANGED: "LOCALE_CHANGED";
|
|
65
71
|
};
|
|
66
72
|
export declare const DEFAULT_ACTION_KEYS: {
|
|
67
73
|
showConfirmationDialog: string;
|
package/dist/cjs/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
package/dist/cjs/events.js
CHANGED
|
@@ -64,7 +64,13 @@ exports.EVENTS = {
|
|
|
64
64
|
*
|
|
65
65
|
* AppShell → AppClient
|
|
66
66
|
*/
|
|
67
|
-
NAVIGATE_CHILD: 'NAVIGATE_CHILD'
|
|
67
|
+
NAVIGATE_CHILD: 'NAVIGATE_CHILD',
|
|
68
|
+
/**
|
|
69
|
+
* The event that is emitted when the locale changes in the shell application.
|
|
70
|
+
*
|
|
71
|
+
* AppShell → AppClient
|
|
72
|
+
*/
|
|
73
|
+
LOCALE_CHANGED: 'LOCALE_CHANGED'
|
|
68
74
|
};
|
|
69
75
|
exports.DEFAULT_ACTION_KEYS = {
|
|
70
76
|
showConfirmationDialog: 'showConfirmationDialog',
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
3
|
/**
|
|
4
4
|
* Represents the type of a registered application within the system.
|
|
5
|
-
* @typedef {('
|
|
5
|
+
* @typedef {('full_page' | 'plugin')} RegisteredAppType
|
|
6
6
|
*/
|
|
7
|
-
export type RegisteredAppType = '
|
|
7
|
+
export type RegisteredAppType = 'full_page' | 'plugin';
|
|
8
8
|
/**
|
|
9
9
|
* Defines the structure of a registered application, including its type,
|
|
10
10
|
* unique identifier, URL, and slug.
|
|
@@ -12,7 +12,7 @@ export type RegisteredAppType = 'fullpage' | 'plugin';
|
|
|
12
12
|
* @property {number} id - The unique identifier of the application.
|
|
13
13
|
* @property {string} url - The URL where the application is hosted.
|
|
14
14
|
* @property {string} slug - A short, unique string used to identify the application.
|
|
15
|
-
* @property {RegisteredAppType} type - The type of the application (e.g., '
|
|
15
|
+
* @property {RegisteredAppType} type - The type of the application (e.g., 'full_page' or 'plugin').
|
|
16
16
|
*/
|
|
17
17
|
export type RegisteredApp = {
|
|
18
18
|
id: number;
|
|
@@ -105,7 +105,7 @@ export interface ApplicationActions {
|
|
|
105
105
|
showConfirmationDialog?: (title: string, content: string) => boolean;
|
|
106
106
|
showToast?: (content: string, type: 'success' | 'warning' | 'error' | 'loading' | 'destroy') => void;
|
|
107
107
|
showErrorMessage?: (title: string, content: string) => void;
|
|
108
|
-
showRichModal?: (uuid: UUID, path: string, context?:
|
|
108
|
+
showRichModal?: (uuid: UUID, path: string, context?: unknown) => void;
|
|
109
109
|
actions: {
|
|
110
110
|
[key: string]: (...args: any[]) => any;
|
|
111
111
|
};
|
package/dist/cjs/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;GAGG;AACH,MAA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_APP_ID: "SET_APP_ID";
|
|
9
9
|
/**
|
|
10
10
|
* The event that is emitted when client applications
|
|
11
11
|
* sends their configuration to the AppShell.
|
|
12
12
|
*
|
|
13
13
|
* AppClient → AppShell
|
|
14
14
|
*/
|
|
15
|
-
SET_CONFIG:
|
|
15
|
+
readonly SET_CONFIG: "SET_CONFIG";
|
|
16
16
|
/**
|
|
17
17
|
* The event that is emitted when the AppShell sends
|
|
18
18
|
* data to the client application.
|
|
19
19
|
*
|
|
20
20
|
* AppShell → AppClient
|
|
21
21
|
*/
|
|
22
|
-
SET_DATA:
|
|
22
|
+
readonly SET_DATA: "SET_DATA";
|
|
23
23
|
/**
|
|
24
24
|
* The event that is emitted when client applications
|
|
25
25
|
* loads and sends their css height information to the AppShell.
|
|
26
26
|
*
|
|
27
27
|
* AppClient → AppShell
|
|
28
28
|
*/
|
|
29
|
-
SET_HEIGHT:
|
|
29
|
+
readonly SET_HEIGHT: "SET_HEIGHT";
|
|
30
30
|
/**
|
|
31
31
|
* The event that is emitted to client applications when params property
|
|
32
32
|
* passed to the PluginRenderer component is received or changed.
|
|
33
33
|
*
|
|
34
34
|
* AppShell → AppClient
|
|
35
35
|
*/
|
|
36
|
-
SET_PARAMS:
|
|
36
|
+
readonly SET_PARAMS: "SET_PARAMS";
|
|
37
37
|
/**
|
|
38
38
|
* The event that is emitted when client applications trigger
|
|
39
39
|
* custom actions defined on the AppShell.
|
|
40
40
|
*
|
|
41
41
|
* AppClient → AppShell
|
|
42
42
|
*/
|
|
43
|
-
INVOKE_ACTION:
|
|
43
|
+
readonly INVOKE_ACTION: "INVOKE_ACTION";
|
|
44
44
|
/**
|
|
45
45
|
* The event that is emitted when client applications trigger
|
|
46
46
|
* default actions defined on the AppShell.
|
|
47
47
|
*
|
|
48
48
|
* AppClient → AppShell
|
|
49
49
|
*/
|
|
50
|
-
INVOKE_DEFAULT_ACTION:
|
|
50
|
+
readonly INVOKE_DEFAULT_ACTION: "INVOKE_DEFAULT_ACTION";
|
|
51
51
|
/**
|
|
52
52
|
* The event that is emitted when client applications trigger
|
|
53
53
|
* navigation for their shell application.
|
|
54
54
|
*
|
|
55
55
|
* AppClient → AppShell
|
|
56
56
|
*/
|
|
57
|
-
NAVIGATE:
|
|
57
|
+
readonly NAVIGATE: "NAVIGATE";
|
|
58
58
|
/**
|
|
59
59
|
* The event that is emitted when shell applications trigger
|
|
60
60
|
* navigation for their child applications.
|
|
61
61
|
*
|
|
62
62
|
* AppShell → AppClient
|
|
63
63
|
*/
|
|
64
|
-
NAVIGATE_CHILD:
|
|
64
|
+
readonly NAVIGATE_CHILD: "NAVIGATE_CHILD";
|
|
65
|
+
/**
|
|
66
|
+
* The event that is emitted when the locale changes in the shell application.
|
|
67
|
+
*
|
|
68
|
+
* AppShell → AppClient
|
|
69
|
+
*/
|
|
70
|
+
readonly LOCALE_CHANGED: "LOCALE_CHANGED";
|
|
65
71
|
};
|
|
66
72
|
export declare const DEFAULT_ACTION_KEYS: {
|
|
67
73
|
showConfirmationDialog: string;
|
package/dist/esm/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;IACjB;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;CAEK,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;CAM/B,CAAC"}
|
package/dist/esm/events.js
CHANGED
|
@@ -61,7 +61,13 @@ export const EVENTS = {
|
|
|
61
61
|
*
|
|
62
62
|
* AppShell → AppClient
|
|
63
63
|
*/
|
|
64
|
-
NAVIGATE_CHILD: 'NAVIGATE_CHILD'
|
|
64
|
+
NAVIGATE_CHILD: 'NAVIGATE_CHILD',
|
|
65
|
+
/**
|
|
66
|
+
* The event that is emitted when the locale changes in the shell application.
|
|
67
|
+
*
|
|
68
|
+
* AppShell → AppClient
|
|
69
|
+
*/
|
|
70
|
+
LOCALE_CHANGED: 'LOCALE_CHANGED'
|
|
65
71
|
};
|
|
66
72
|
export const DEFAULT_ACTION_KEYS = {
|
|
67
73
|
showConfirmationDialog: 'showConfirmationDialog',
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { UUID } from 'crypto';
|
|
3
3
|
/**
|
|
4
4
|
* Represents the type of a registered application within the system.
|
|
5
|
-
* @typedef {('
|
|
5
|
+
* @typedef {('full_page' | 'plugin')} RegisteredAppType
|
|
6
6
|
*/
|
|
7
|
-
export type RegisteredAppType = '
|
|
7
|
+
export type RegisteredAppType = 'full_page' | 'plugin';
|
|
8
8
|
/**
|
|
9
9
|
* Defines the structure of a registered application, including its type,
|
|
10
10
|
* unique identifier, URL, and slug.
|
|
@@ -12,7 +12,7 @@ export type RegisteredAppType = 'fullpage' | 'plugin';
|
|
|
12
12
|
* @property {number} id - The unique identifier of the application.
|
|
13
13
|
* @property {string} url - The URL where the application is hosted.
|
|
14
14
|
* @property {string} slug - A short, unique string used to identify the application.
|
|
15
|
-
* @property {RegisteredAppType} type - The type of the application (e.g., '
|
|
15
|
+
* @property {RegisteredAppType} type - The type of the application (e.g., 'full_page' or 'plugin').
|
|
16
16
|
*/
|
|
17
17
|
export type RegisteredApp = {
|
|
18
18
|
id: number;
|
|
@@ -105,7 +105,7 @@ export interface ApplicationActions {
|
|
|
105
105
|
showConfirmationDialog?: (title: string, content: string) => boolean;
|
|
106
106
|
showToast?: (content: string, type: 'success' | 'warning' | 'error' | 'loading' | 'destroy') => void;
|
|
107
107
|
showErrorMessage?: (title: string, content: string) => void;
|
|
108
|
-
showRichModal?: (uuid: UUID, path: string, context?:
|
|
108
|
+
showRichModal?: (uuid: UUID, path: string, context?: unknown) => void;
|
|
109
109
|
actions: {
|
|
110
110
|
[key: string]: (...args: any[]) => any;
|
|
111
111
|
};
|
package/dist/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,yBAA0B,SA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E,sBAAsB,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,CAAC,OAAO,EAAE,4BAA4B,KAAK,IAAI,CAAC;CAC3D;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;CAChE;AAED;;;GAGG;AAEH,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/app-shared",
|
|
3
3
|
"description": "Shared utilities and helper functions for app-shell and app-client packages.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -9,15 +9,31 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
|
|
14
|
+
"build:esm": "tsc --outDir dist/esm",
|
|
15
|
+
"build:commonjs": "tsc --module commonjs --outDir dist/cjs",
|
|
16
|
+
"copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
|
|
17
|
+
"clean": "rimraf dist/",
|
|
18
|
+
"lint": "eslint *.ts*",
|
|
19
|
+
"test": "vitest run",
|
|
20
|
+
"test:coverage": "vitest run --coverage",
|
|
21
|
+
"test:ui": "vitest --ui",
|
|
22
|
+
"test:watch": "vitest watch",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"prepublishOnly": "pnpm run build",
|
|
25
|
+
"prepack": "clean-package",
|
|
26
|
+
"postpack": "clean-package restore"
|
|
27
|
+
},
|
|
12
28
|
"dependencies": {},
|
|
13
29
|
"devDependencies": {
|
|
30
|
+
"@akinon/vite-config": "workspace:*",
|
|
31
|
+
"@akinon/eslint-config": "workspace:*",
|
|
32
|
+
"@akinon/typescript-config": "workspace:*",
|
|
14
33
|
"clean-package": "2.2.0",
|
|
15
34
|
"copyfiles": "^2.4.1",
|
|
16
35
|
"rimraf": "^5.0.5",
|
|
17
|
-
"typescript": "^5.2.2"
|
|
18
|
-
"@akinon/typescript-config": "0.2.0",
|
|
19
|
-
"@akinon/eslint-config": "0.1.0",
|
|
20
|
-
"@akinon/vite-config": "0.4.0"
|
|
36
|
+
"typescript": "^5.2.2"
|
|
21
37
|
},
|
|
22
38
|
"clean-package": "../../clean-package.config.json",
|
|
23
39
|
"types": "dist/esm/index.d.ts",
|
|
@@ -28,17 +44,5 @@
|
|
|
28
44
|
"require": "./dist/cjs/index.js"
|
|
29
45
|
},
|
|
30
46
|
"./package.json": "./package.json"
|
|
31
|
-
},
|
|
32
|
-
"scripts": {
|
|
33
|
-
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
|
|
34
|
-
"build:esm": "tsc --outDir dist/esm",
|
|
35
|
-
"build:commonjs": "tsc --module commonjs --outDir dist/cjs",
|
|
36
|
-
"copy:files": "copyfiles -u 1 src/**/*.css dist/esm && copyfiles -u 1 src/**/*.css dist/cjs",
|
|
37
|
-
"clean": "rimraf dist/",
|
|
38
|
-
"lint": "eslint *.ts*",
|
|
39
|
-
"test": "vitest run",
|
|
40
|
-
"test:ui": "vitest --ui",
|
|
41
|
-
"test:watch": "vitest watch",
|
|
42
|
-
"typecheck": "tsc --noEmit"
|
|
43
47
|
}
|
|
44
|
-
}
|
|
48
|
+
}
|