@lwrjs/diagnostics 0.13.0-alpha.9 → 0.13.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.
@@ -26,7 +26,7 @@ __markAsModule(exports);
26
26
  __export(exports, {
27
27
  compiler: () => compiler
28
28
  });
29
- var import_core_diagnostics = __toModule(require("./core-diagnostics"));
29
+ var import_core_diagnostics = __toModule(require("./core-diagnostics.cjs"));
30
30
  var compiler = (0, import_core_diagnostics.createDiagnosticsCategory)({
31
31
  UMD_TRANSFORM: {
32
32
  category: "compile/umd_transform",
@@ -19,7 +19,7 @@ var __toModule = (module2) => {
19
19
 
20
20
  // packages/@lwrjs/diagnostics/src/index.ts
21
21
  __markAsModule(exports);
22
+ __exportStar(exports, __toModule(require("./types.cjs")));
22
23
  __exportStar(exports, __toModule(require("./descriptions/index.cjs")));
23
24
  __exportStar(exports, __toModule(require("./errors.cjs")));
24
25
  __exportStar(exports, __toModule(require("./logger.cjs")));
25
- __exportStar(exports, __toModule(require("./types.cjs")));
@@ -1,10 +1,7 @@
1
- export declare const application: {
2
- ROUTE_HANDLER_ERROR: (route: string, error: string) => Omit<{
1
+ export declare const application: import("../types.js").OutputMessagesCategory<{
2
+ ROUTE_HANDLER_ERROR: (route: string, error: string) => {
3
3
  category: "lwrApplication/routeHandler";
4
4
  message: string;
5
- }, "message" | "advice"> & {
6
- advice: import("../types.js").DiagnosticAdvice;
7
- message: string;
8
5
  };
9
- };
6
+ }>;
10
7
  //# sourceMappingURL=application.d.ts.map
@@ -1,10 +1,7 @@
1
- export declare const compiler: {
2
- UMD_TRANSFORM: Omit<{
1
+ export declare const compiler: import("../types.js").OutputMessagesCategory<{
2
+ UMD_TRANSFORM: {
3
3
  category: "compile/umd_transform";
4
4
  message: string;
5
- }, "message" | "advice"> & {
6
- advice: import("..").DiagnosticAdvice;
7
- message: string;
8
5
  };
9
- };
6
+ }>;
10
7
  //# sourceMappingURL=compiler.d.ts.map
@@ -1,4 +1,4 @@
1
- import { createDiagnosticsCategory } from './core-diagnostics';
1
+ import { createDiagnosticsCategory } from './core-diagnostics.js';
2
2
  export const compiler = createDiagnosticsCategory({
3
3
  UMD_TRANSFORM: {
4
4
  category: 'compile/umd_transform',
@@ -1,12 +1,9 @@
1
1
  import type { DiagnosticLocation } from '../types.js';
2
- export declare const configParser: {
3
- TEST: Omit<{
4
- message: string;
5
- }, "message" | "advice"> & {
6
- advice: import("../types.js").DiagnosticAdvice;
2
+ export declare const configParser: import("../types.js").OutputMessagesCategory<{
3
+ TEST: {
7
4
  message: string;
8
5
  };
9
- TEST_ADVICE: (tagName: string, openLocation: DiagnosticLocation) => Omit<{
6
+ TEST_ADVICE: (tagName: string, openLocation: DiagnosticLocation) => {
10
7
  message: string;
11
8
  advice: ({
12
9
  type: "log";
@@ -19,184 +16,106 @@ export declare const configParser: {
19
16
  category?: undefined;
20
17
  text?: undefined;
21
18
  })[];
22
- }, "message" | "advice"> & {
23
- advice: import("../types.js").DiagnosticAdvice;
24
- message: string;
25
19
  };
26
- INVALID_JSON: (invalidJsonError: string) => Omit<{
20
+ INVALID_JSON: (invalidJsonError: string) => {
27
21
  category: "lwrConfig/invalidJson";
28
22
  message: string;
29
- }, "message" | "advice"> & {
30
- advice: import("../types.js").DiagnosticAdvice;
31
- message: string;
32
23
  };
33
- INCORRECT_NODE_TYPE: (configProperty: string, expectedNodeType: string, actualNodeType: string) => Omit<{
24
+ INCORRECT_NODE_TYPE: (configProperty: string, expectedNodeType: string, actualNodeType: string) => {
34
25
  category: "lwrConfig/invalidSchema";
35
26
  message: string;
36
- }, "message" | "advice"> & {
37
- advice: import("../types.js").DiagnosticAdvice;
38
- message: string;
39
27
  };
40
- INVALID_EMPTY_NODE: (configProperty: string) => Omit<{
28
+ INVALID_EMPTY_NODE: (configProperty: string) => {
41
29
  category: "lwrConfig/invalidSchema";
42
30
  message: string;
43
- }, "message" | "advice"> & {
44
- advice: import("../types.js").DiagnosticAdvice;
45
- message: string;
46
31
  };
47
- INVALID_PROPERTY: (configProperty: string, prop: string) => Omit<{
32
+ INVALID_PROPERTY: (configProperty: string, prop: string) => {
48
33
  category: "lwrConfig/invalidSchema";
49
34
  message: string;
50
- }, "message" | "advice"> & {
51
- advice: import("../types.js").DiagnosticAdvice;
52
- message: string;
53
35
  };
54
- NON_EMPTY_STRING: (configProperty: string, actualProp: string) => Omit<{
36
+ NON_EMPTY_STRING: (configProperty: string, actualProp: string) => {
55
37
  category: "lwrConfig/invalidSchema";
56
38
  message: string;
57
- }, "message" | "advice"> & {
58
- advice: import("../types.js").DiagnosticAdvice;
59
- message: string;
60
39
  };
61
- NON_EMPTY_ARRAY: (configProperty: string, actualProp: string) => Omit<{
40
+ NON_EMPTY_ARRAY: (configProperty: string, actualProp: string) => {
62
41
  category: "lwrConfig/invalidSchema";
63
42
  message: string;
64
- }, "message" | "advice"> & {
65
- advice: import("../types.js").DiagnosticAdvice;
66
- message: string;
67
43
  };
68
- INVALID_PORT: (configProperty: string, actualProp: string) => Omit<{
44
+ INVALID_PORT: (configProperty: string, actualProp: string) => {
69
45
  category: "lwrConfig/invalidSchema";
70
46
  message: string;
71
- }, "message" | "advice"> & {
72
- advice: import("../types.js").DiagnosticAdvice;
73
- message: string;
74
47
  };
75
- INVALID_METHOD: (configProperty: string, actualProp: string) => Omit<{
48
+ INVALID_METHOD: (configProperty: string, actualProp: string) => {
76
49
  category: "lwrConfig/invalidSchema";
77
50
  message: string;
78
- }, "message" | "advice"> & {
79
- advice: import("../types.js").DiagnosticAdvice;
80
- message: string;
81
51
  };
82
- INVALID_SERVER_TYPE: (configProperty: string, actualProp: string) => Omit<{
52
+ INVALID_SERVER_TYPE: (configProperty: string, actualProp: string) => {
83
53
  category: "lwrConfig/invalidSchema";
84
54
  message: string;
85
- }, "message" | "advice"> & {
86
- advice: import("../types.js").DiagnosticAdvice;
87
- message: string;
88
55
  };
89
- INVALID_GENERATOR_CONFIG: (configProperty: string, actualProp: string) => Omit<{
56
+ INVALID_GENERATOR_CONFIG: (configProperty: string, actualProp: string) => {
90
57
  category: "lwrConfig/invalidSchema";
91
58
  message: string;
92
- }, "message" | "advice"> & {
93
- advice: import("../types.js").DiagnosticAdvice;
94
- message: string;
95
59
  };
96
- INVALID_STATUS: (configProperty: string, actualProp: string) => Omit<{
60
+ INVALID_STATUS: (configProperty: string, actualProp: string) => {
97
61
  category: "lwrConfig/invalidSchema";
98
62
  message: string;
99
- }, "message" | "advice"> & {
100
- advice: import("../types.js").DiagnosticAdvice;
101
- message: string;
102
63
  };
103
- INVALID_SPECIFIER: (configProperty: string, actualProp: string) => Omit<{
64
+ INVALID_SPECIFIER: (configProperty: string, actualProp: string) => {
104
65
  category: "lwrConfig/invalidSchema";
105
66
  message: string;
106
- }, "message" | "advice"> & {
107
- advice: import("../types.js").DiagnosticAdvice;
108
- message: string;
109
67
  };
110
- INVALID_PATH: (configProperty: string, actualProp: string) => Omit<{
68
+ INVALID_PATH: (configProperty: string, actualProp: string) => {
111
69
  category: "lwrConfig/invalidSchema";
112
70
  message: string;
113
- }, "message" | "advice"> & {
114
- advice: import("../types.js").DiagnosticAdvice;
115
- message: string;
116
71
  };
117
- INVALID_BASEPATH: (configProperty: string, actualProp: string) => Omit<{
72
+ INVALID_BASEPATH: (configProperty: string, actualProp: string) => {
118
73
  category: "lwrConfig/invalidSchema";
119
74
  message: string;
120
- }, "message" | "advice"> & {
121
- advice: import("../types.js").DiagnosticAdvice;
122
- message: string;
123
75
  };
124
- INVALID_SERVICE: (configProperty: string, actualProp: string) => Omit<{
76
+ INVALID_SERVICE: (configProperty: string, actualProp: string) => {
125
77
  category: "lwrConfig/invalidSchema";
126
78
  message: string;
127
- }, "message" | "advice"> & {
128
- advice: import("../types.js").DiagnosticAdvice;
129
- message: string;
130
79
  };
131
- INVALID_ENVIRONMENT: (configProperty: string) => Omit<{
80
+ INVALID_ENVIRONMENT: (configProperty: string) => {
132
81
  category: "lwrConfig/invalidSchema";
133
82
  message: string;
134
- }, "message" | "advice"> & {
135
- advice: import("../types.js").DiagnosticAdvice;
136
- message: string;
137
83
  };
138
- MISSING_ONE_OF: (configProperty: string, childProps: string[]) => Omit<{
84
+ MISSING_ONE_OF: (configProperty: string, childProps: string[]) => {
139
85
  category: "lwrConfig/invalidSchema";
140
86
  message: string;
141
- }, "message" | "advice"> & {
142
- advice: import("../types.js").DiagnosticAdvice;
143
- message: string;
144
87
  };
145
- TOO_MANY: (configProperty: string, childProps: string[]) => Omit<{
88
+ TOO_MANY: (configProperty: string, childProps: string[]) => {
146
89
  category: "lwrConfig/invalidSchema";
147
90
  message: string;
148
- }, "message" | "advice"> & {
149
- advice: import("../types.js").DiagnosticAdvice;
150
- message: string;
151
91
  };
152
- MISSING_REQUIRED: (configProperty: string, childProps: string[]) => Omit<{
92
+ MISSING_REQUIRED: (configProperty: string, childProps: string[]) => {
153
93
  category: "lwrConfig/invalidSchema";
154
94
  message: string;
155
- }, "message" | "advice"> & {
156
- advice: import("../types.js").DiagnosticAdvice;
157
- message: string;
158
95
  };
159
- DUPLICATE_IDS: (configProperty: string, dupeIds: string[]) => Omit<{
96
+ DUPLICATE_IDS: (configProperty: string, dupeIds: string[]) => {
160
97
  category: "lwrConfig/invalidSchema";
161
98
  message: string;
162
- }, "message" | "advice"> & {
163
- advice: import("../types.js").DiagnosticAdvice;
164
- message: string;
165
99
  };
166
- COMPILE_LOCKER_SSR: () => Omit<{
100
+ COMPILE_LOCKER_SSR: () => {
167
101
  category: "lwrConfig/invalidSchema";
168
102
  message: string;
169
- }, "message" | "advice"> & {
170
- advice: import("../types.js").DiagnosticAdvice;
171
- message: string;
172
103
  };
173
- DUPLICATE_BUNDLE_CONFIG: (dupeIds: string[]) => Omit<{
104
+ DUPLICATE_BUNDLE_CONFIG: (dupeIds: string[]) => {
174
105
  category: "lwrConfig/invalidSchema";
175
106
  message: string;
176
- }, "message" | "advice"> & {
177
- advice: import("../types.js").DiagnosticAdvice;
178
- message: string;
179
107
  };
180
- DEFAULT_NOT_IN_LOCALES: (defaultLocale: string, locales: string[]) => Omit<{
108
+ DEFAULT_NOT_IN_LOCALES: (defaultLocale: string, locales: string[]) => {
181
109
  category: "lwrConfig/invalidSchema";
182
110
  message: string;
183
- }, "message" | "advice"> & {
184
- advice: import("../types.js").DiagnosticAdvice;
185
- message: string;
186
111
  };
187
- FALLBACK_NOT_IN_LOCALES: (fallback: string, locales: string[]) => Omit<{
112
+ FALLBACK_NOT_IN_LOCALES: (fallback: string, locales: string[]) => {
188
113
  category: "lwrConfig/invalidSchema";
189
114
  message: string;
190
- }, "message" | "advice"> & {
191
- advice: import("../types.js").DiagnosticAdvice;
192
- message: string;
193
115
  };
194
- SSR_WITHOUT_PRELOAD: (configProperty: string) => Omit<{
116
+ SSR_WITHOUT_PRELOAD: (configProperty: string) => {
195
117
  category: "lwrConfig/invalidSchema";
196
118
  message: string;
197
- }, "message" | "advice"> & {
198
- advice: import("../types.js").DiagnosticAdvice;
199
- message: string;
200
119
  };
201
- };
120
+ }>;
202
121
  //# sourceMappingURL=configParser.d.ts.map
@@ -1,20 +1,3 @@
1
- import type { DiagnosticDescription, DiagnosticAdvice, StaticMarkup } from '../types';
2
- type InputMessagesFactory = (...params: any[]) => Partial<DiagnosticDescription>;
3
- export type InputMessagesCategory = {
4
- [key: string]: Partial<DiagnosticDescription> | InputMessagesFactory;
5
- };
6
- type OuputMessagesFactoryReturn<Ret extends Partial<DiagnosticDescription>> = Omit<Ret, 'message' | 'advice'> & {
7
- advice: DiagnosticAdvice;
8
- message: StaticMarkup;
9
- };
10
- type OutputMessagesFactory<Func extends InputMessagesFactory> = (...params: Parameters<Func>) => OuputMessagesFactoryReturn<ReturnType<Func>>;
11
- type OutputMessagesValue<Value> = Value extends StaticMarkup ? {
12
- message: StaticMarkup;
13
- advice: DiagnosticAdvice;
14
- } : Value extends Partial<DiagnosticDescription> ? OuputMessagesFactoryReturn<Value> : Value extends InputMessagesFactory ? OutputMessagesFactory<Value> : never;
15
- type OutputMessagesCategory<Input extends InputMessagesCategory> = {
16
- [Key in keyof Input]: OutputMessagesValue<Input[Key]>;
17
- };
1
+ import type { InputMessagesCategory, OutputMessagesCategory } from '../types.js';
18
2
  export declare function createDiagnosticsCategory<Input extends InputMessagesCategory>(input: Input): OutputMessagesCategory<Input>;
19
- export {};
20
3
  //# sourceMappingURL=core-diagnostics.d.ts.map
@@ -4,8 +4,6 @@ export function createDiagnosticsCategory(input) {
4
4
  const value = input[key];
5
5
  if (typeof value === 'function') {
6
6
  const callback = value;
7
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8
- // @ts-ignore
9
7
  category[key] = function (...params) {
10
8
  const { message, advice = [], ...ret } = callback(...params.map((p) => escape(String(p))));
11
9
  return {
@@ -1,12 +1,9 @@
1
1
  export declare const descriptions: {
2
- CONFIG_PARSER: {
3
- TEST: Omit<{
4
- message: string;
5
- }, "message" | "advice"> & {
6
- advice: import("../types.js").DiagnosticAdvice;
2
+ CONFIG_PARSER: import("../types.js").OutputMessagesCategory<{
3
+ TEST: {
7
4
  message: string;
8
5
  };
9
- TEST_ADVICE: (tagName: string, openLocation: import("../types.js").DiagnosticLocation) => Omit<{
6
+ TEST_ADVICE: (tagName: string, openLocation: import("../types.js").DiagnosticLocation) => {
10
7
  message: string;
11
8
  advice: ({
12
9
  type: "log";
@@ -19,360 +16,210 @@ export declare const descriptions: {
19
16
  category?: undefined;
20
17
  text?: undefined;
21
18
  })[];
22
- }, "message" | "advice"> & {
23
- advice: import("../types.js").DiagnosticAdvice;
24
- message: string;
25
19
  };
26
- INVALID_JSON: (invalidJsonError: string) => Omit<{
20
+ INVALID_JSON: (invalidJsonError: string) => {
27
21
  category: "lwrConfig/invalidJson";
28
22
  message: string;
29
- }, "message" | "advice"> & {
30
- advice: import("../types.js").DiagnosticAdvice;
31
- message: string;
32
23
  };
33
- INCORRECT_NODE_TYPE: (configProperty: string, expectedNodeType: string, actualNodeType: string) => Omit<{
24
+ INCORRECT_NODE_TYPE: (configProperty: string, expectedNodeType: string, actualNodeType: string) => {
34
25
  category: "lwrConfig/invalidSchema";
35
26
  message: string;
36
- }, "message" | "advice"> & {
37
- advice: import("../types.js").DiagnosticAdvice;
38
- message: string;
39
27
  };
40
- INVALID_EMPTY_NODE: (configProperty: string) => Omit<{
28
+ INVALID_EMPTY_NODE: (configProperty: string) => {
41
29
  category: "lwrConfig/invalidSchema";
42
30
  message: string;
43
- }, "message" | "advice"> & {
44
- advice: import("../types.js").DiagnosticAdvice;
45
- message: string;
46
31
  };
47
- INVALID_PROPERTY: (configProperty: string, prop: string) => Omit<{
32
+ INVALID_PROPERTY: (configProperty: string, prop: string) => {
48
33
  category: "lwrConfig/invalidSchema";
49
34
  message: string;
50
- }, "message" | "advice"> & {
51
- advice: import("../types.js").DiagnosticAdvice;
52
- message: string;
53
35
  };
54
- NON_EMPTY_STRING: (configProperty: string, actualProp: string) => Omit<{
36
+ NON_EMPTY_STRING: (configProperty: string, actualProp: string) => {
55
37
  category: "lwrConfig/invalidSchema";
56
38
  message: string;
57
- }, "message" | "advice"> & {
58
- advice: import("../types.js").DiagnosticAdvice;
59
- message: string;
60
39
  };
61
- NON_EMPTY_ARRAY: (configProperty: string, actualProp: string) => Omit<{
40
+ NON_EMPTY_ARRAY: (configProperty: string, actualProp: string) => {
62
41
  category: "lwrConfig/invalidSchema";
63
42
  message: string;
64
- }, "message" | "advice"> & {
65
- advice: import("../types.js").DiagnosticAdvice;
66
- message: string;
67
43
  };
68
- INVALID_PORT: (configProperty: string, actualProp: string) => Omit<{
44
+ INVALID_PORT: (configProperty: string, actualProp: string) => {
69
45
  category: "lwrConfig/invalidSchema";
70
46
  message: string;
71
- }, "message" | "advice"> & {
72
- advice: import("../types.js").DiagnosticAdvice;
73
- message: string;
74
47
  };
75
- INVALID_METHOD: (configProperty: string, actualProp: string) => Omit<{
48
+ INVALID_METHOD: (configProperty: string, actualProp: string) => {
76
49
  category: "lwrConfig/invalidSchema";
77
50
  message: string;
78
- }, "message" | "advice"> & {
79
- advice: import("../types.js").DiagnosticAdvice;
80
- message: string;
81
51
  };
82
- INVALID_SERVER_TYPE: (configProperty: string, actualProp: string) => Omit<{
52
+ INVALID_SERVER_TYPE: (configProperty: string, actualProp: string) => {
83
53
  category: "lwrConfig/invalidSchema";
84
54
  message: string;
85
- }, "message" | "advice"> & {
86
- advice: import("../types.js").DiagnosticAdvice;
87
- message: string;
88
55
  };
89
- INVALID_GENERATOR_CONFIG: (configProperty: string, actualProp: string) => Omit<{
56
+ INVALID_GENERATOR_CONFIG: (configProperty: string, actualProp: string) => {
90
57
  category: "lwrConfig/invalidSchema";
91
58
  message: string;
92
- }, "message" | "advice"> & {
93
- advice: import("../types.js").DiagnosticAdvice;
94
- message: string;
95
59
  };
96
- INVALID_STATUS: (configProperty: string, actualProp: string) => Omit<{
60
+ INVALID_STATUS: (configProperty: string, actualProp: string) => {
97
61
  category: "lwrConfig/invalidSchema";
98
62
  message: string;
99
- }, "message" | "advice"> & {
100
- advice: import("../types.js").DiagnosticAdvice;
101
- message: string;
102
63
  };
103
- INVALID_SPECIFIER: (configProperty: string, actualProp: string) => Omit<{
64
+ INVALID_SPECIFIER: (configProperty: string, actualProp: string) => {
104
65
  category: "lwrConfig/invalidSchema";
105
66
  message: string;
106
- }, "message" | "advice"> & {
107
- advice: import("../types.js").DiagnosticAdvice;
108
- message: string;
109
67
  };
110
- INVALID_PATH: (configProperty: string, actualProp: string) => Omit<{
68
+ INVALID_PATH: (configProperty: string, actualProp: string) => {
111
69
  category: "lwrConfig/invalidSchema";
112
70
  message: string;
113
- }, "message" | "advice"> & {
114
- advice: import("../types.js").DiagnosticAdvice;
115
- message: string;
116
71
  };
117
- INVALID_BASEPATH: (configProperty: string, actualProp: string) => Omit<{
72
+ INVALID_BASEPATH: (configProperty: string, actualProp: string) => {
118
73
  category: "lwrConfig/invalidSchema";
119
74
  message: string;
120
- }, "message" | "advice"> & {
121
- advice: import("../types.js").DiagnosticAdvice;
122
- message: string;
123
75
  };
124
- INVALID_SERVICE: (configProperty: string, actualProp: string) => Omit<{
76
+ INVALID_SERVICE: (configProperty: string, actualProp: string) => {
125
77
  category: "lwrConfig/invalidSchema";
126
78
  message: string;
127
- }, "message" | "advice"> & {
128
- advice: import("../types.js").DiagnosticAdvice;
129
- message: string;
130
79
  };
131
- INVALID_ENVIRONMENT: (configProperty: string) => Omit<{
80
+ INVALID_ENVIRONMENT: (configProperty: string) => {
132
81
  category: "lwrConfig/invalidSchema";
133
82
  message: string;
134
- }, "message" | "advice"> & {
135
- advice: import("../types.js").DiagnosticAdvice;
136
- message: string;
137
83
  };
138
- MISSING_ONE_OF: (configProperty: string, childProps: string[]) => Omit<{
84
+ MISSING_ONE_OF: (configProperty: string, childProps: string[]) => {
139
85
  category: "lwrConfig/invalidSchema";
140
86
  message: string;
141
- }, "message" | "advice"> & {
142
- advice: import("../types.js").DiagnosticAdvice;
143
- message: string;
144
87
  };
145
- TOO_MANY: (configProperty: string, childProps: string[]) => Omit<{
88
+ TOO_MANY: (configProperty: string, childProps: string[]) => {
146
89
  category: "lwrConfig/invalidSchema";
147
90
  message: string;
148
- }, "message" | "advice"> & {
149
- advice: import("../types.js").DiagnosticAdvice;
150
- message: string;
151
91
  };
152
- MISSING_REQUIRED: (configProperty: string, childProps: string[]) => Omit<{
92
+ MISSING_REQUIRED: (configProperty: string, childProps: string[]) => {
153
93
  category: "lwrConfig/invalidSchema";
154
94
  message: string;
155
- }, "message" | "advice"> & {
156
- advice: import("../types.js").DiagnosticAdvice;
157
- message: string;
158
95
  };
159
- DUPLICATE_IDS: (configProperty: string, dupeIds: string[]) => Omit<{
96
+ DUPLICATE_IDS: (configProperty: string, dupeIds: string[]) => {
160
97
  category: "lwrConfig/invalidSchema";
161
98
  message: string;
162
- }, "message" | "advice"> & {
163
- advice: import("../types.js").DiagnosticAdvice;
164
- message: string;
165
99
  };
166
- COMPILE_LOCKER_SSR: () => Omit<{
100
+ COMPILE_LOCKER_SSR: () => {
167
101
  category: "lwrConfig/invalidSchema";
168
102
  message: string;
169
- }, "message" | "advice"> & {
170
- advice: import("../types.js").DiagnosticAdvice;
171
- message: string;
172
103
  };
173
- DUPLICATE_BUNDLE_CONFIG: (dupeIds: string[]) => Omit<{
104
+ DUPLICATE_BUNDLE_CONFIG: (dupeIds: string[]) => {
174
105
  category: "lwrConfig/invalidSchema";
175
106
  message: string;
176
- }, "message" | "advice"> & {
177
- advice: import("../types.js").DiagnosticAdvice;
178
- message: string;
179
107
  };
180
- DEFAULT_NOT_IN_LOCALES: (defaultLocale: string, locales: string[]) => Omit<{
108
+ DEFAULT_NOT_IN_LOCALES: (defaultLocale: string, locales: string[]) => {
181
109
  category: "lwrConfig/invalidSchema";
182
110
  message: string;
183
- }, "message" | "advice"> & {
184
- advice: import("../types.js").DiagnosticAdvice;
185
- message: string;
186
111
  };
187
- FALLBACK_NOT_IN_LOCALES: (fallback: string, locales: string[]) => Omit<{
112
+ FALLBACK_NOT_IN_LOCALES: (fallback: string, locales: string[]) => {
188
113
  category: "lwrConfig/invalidSchema";
189
114
  message: string;
190
- }, "message" | "advice"> & {
191
- advice: import("../types.js").DiagnosticAdvice;
192
- message: string;
193
115
  };
194
- SSR_WITHOUT_PRELOAD: (configProperty: string) => Omit<{
116
+ SSR_WITHOUT_PRELOAD: (configProperty: string) => {
195
117
  category: "lwrConfig/invalidSchema";
196
118
  message: string;
197
- }, "message" | "advice"> & {
198
- advice: import("../types.js").DiagnosticAdvice;
199
- message: string;
200
119
  };
201
- };
202
- UNRESOLVABLE: {
203
- ASSET: (assetPath: string) => Omit<{
120
+ }>;
121
+ UNRESOLVABLE: import("../types.js").OutputMessagesCategory<{
122
+ ASSET: (assetPath: string) => {
204
123
  category: "lwrUnresolvable/asset";
205
124
  message: string;
206
- }, "message" | "advice"> & {
207
- advice: import("../types.js").DiagnosticAdvice;
208
- message: string;
209
125
  };
210
- DIR_ALIAS: (assetPath: string) => Omit<{
126
+ DIR_ALIAS: (assetPath: string) => {
211
127
  category: "lwrUnresolvable/asset";
212
128
  message: string;
213
- }, "message" | "advice"> & {
214
- advice: import("../types.js").DiagnosticAdvice;
215
- message: string;
216
129
  };
217
- MODULE: (moduleSpecifier: string) => Omit<{
130
+ MODULE: (moduleSpecifier: string) => {
218
131
  category: "lwrUnresolvable/module";
219
132
  message: string;
220
- }, "message" | "advice"> & {
221
- advice: import("../types.js").DiagnosticAdvice;
222
- message: string;
223
133
  };
224
- MODULE_ENTRY: (moduleSpecifier: string) => Omit<{
134
+ MODULE_ENTRY: (moduleSpecifier: string) => {
225
135
  category: "lwrUnresolvable/module";
226
136
  message: string;
227
- }, "message" | "advice"> & {
228
- advice: import("../types.js").DiagnosticAdvice;
229
- message: string;
230
137
  };
231
- BUNDLE: (specifier: string) => Omit<{
138
+ BUNDLE: (specifier: string) => {
232
139
  category: "lwrUnresolvable/bundle";
233
140
  message: string;
234
- }, "message" | "advice"> & {
235
- advice: import("../types.js").DiagnosticAdvice;
236
- message: string;
237
141
  };
238
- LWC_MODULE: (name: string) => Omit<{
142
+ LWC_MODULE: (name: string) => {
239
143
  category: "lwrUnresolvable/module";
240
144
  message: string;
241
- }, "message" | "advice"> & {
242
- advice: import("../types.js").DiagnosticAdvice;
243
- message: string;
244
145
  };
245
- SIGNED_MODULE: (moduleSpecifier: string, signature: string) => Omit<{
146
+ SIGNED_MODULE: (moduleSpecifier: string, signature: string) => {
246
147
  category: "lwrUnresolvable/module";
247
148
  message: string;
248
- }, "message" | "advice"> & {
249
- advice: import("../types.js").DiagnosticAdvice;
250
- message: string;
251
149
  };
252
- RESOURCE: (resourceSpecifier: string, resourceVersion: any) => Omit<{
150
+ RESOURCE: (resourceSpecifier: string, resourceVersion: any) => {
253
151
  category: "lwrUnresolvable/resource";
254
152
  message: string;
255
- }, "message" | "advice"> & {
256
- advice: import("../types.js").DiagnosticAdvice;
257
- message: string;
258
153
  };
259
- VIEW: (viewPath: string) => Omit<{
154
+ VIEW: (viewPath: string) => {
260
155
  category: "lwrUnresolvable/view";
261
156
  message: string;
262
- }, "message" | "advice"> & {
263
- advice: import("../types.js").DiagnosticAdvice;
264
- message: string;
265
157
  };
266
- VIEW_CONFIG: (configPath: string) => Omit<{
158
+ VIEW_CONFIG: (configPath: string) => {
267
159
  category: "lwrUnresolvable/view";
268
160
  message: string;
269
- }, "message" | "advice"> & {
270
- advice: import("../types.js").DiagnosticAdvice;
271
- message: string;
272
161
  };
273
- APP_CONFIG: (appId: string) => Omit<{
162
+ APP_CONFIG: (appId: string) => {
274
163
  category: "lwrUnresolvable/view";
275
164
  message: string;
276
- }, "message" | "advice"> & {
277
- advice: import("../types.js").DiagnosticAdvice;
278
- message: string;
279
165
  };
280
- INVALID_JSON: () => Omit<{
166
+ INVALID_JSON: () => {
281
167
  category: "lwrUnresolvable/invalid";
282
168
  message: string;
283
- }, "message" | "advice"> & {
284
- advice: import("../types.js").DiagnosticAdvice;
285
- message: string;
286
169
  };
287
- INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => Omit<{
170
+ INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => {
288
171
  category: "lwrUnresolvable/invalid";
289
172
  message: string;
290
- }, "message" | "advice"> & {
291
- advice: import("../types.js").DiagnosticAdvice;
292
- message: string;
293
173
  };
294
- INVALID_ENVIRONMENT: (environment: string) => Omit<{
174
+ INVALID_ENVIRONMENT: (environment: string) => {
295
175
  category: "lwrUnresolvable/invalid";
296
176
  message: string;
297
- }, "message" | "advice"> & {
298
- advice: import("../types.js").DiagnosticAdvice;
299
- message: string;
300
177
  };
301
- INVALID_SPECIFIER: (specifier: string) => Omit<{
178
+ INVALID_SPECIFIER: (specifier: string) => {
302
179
  category: "lwrUnresolvable/invalid";
303
180
  message: string;
304
- }, "message" | "advice"> & {
305
- advice: import("../types.js").DiagnosticAdvice;
306
- message: string;
307
181
  };
308
- LABEL_MODULE: (file: string, error: string) => Omit<{
182
+ LABEL_MODULE: (file: string, error: string) => {
309
183
  category: "lwrUnresolvable/label";
310
184
  message: string;
311
- }, "message" | "advice"> & {
312
- advice: import("../types.js").DiagnosticAdvice;
313
- message: string;
314
185
  };
315
- ROUTES_MODULE: (file: string, error: string) => Omit<{
186
+ ROUTES_MODULE: (file: string, error: string) => {
316
187
  category: "lwrUnresolvable/routes";
317
188
  message: string;
318
- }, "message" | "advice"> & {
319
- advice: import("../types.js").DiagnosticAdvice;
320
- message: string;
321
189
  };
322
- PRELOAD_MODULE: (specifier: string) => Omit<{
190
+ PRELOAD_MODULE: (specifier: string) => {
323
191
  category: "lwrUnresolvable/invalid";
324
192
  message: string;
325
- }, "message" | "advice"> & {
326
- advice: import("../types.js").DiagnosticAdvice;
327
- message: string;
328
193
  };
329
- INVALID_MODE: (mode: string) => Omit<{
194
+ INVALID_MODE: (mode: string) => {
330
195
  category: "lwrUnresolvable/invalid";
331
196
  message: string;
332
- }, "message" | "advice"> & {
333
- advice: import("../types.js").DiagnosticAdvice;
334
- message: string;
335
197
  };
336
- SSR_TIMEOUT: (specifier: string, time: number) => Omit<{
198
+ SSR_TIMEOUT: (specifier: string, time: number) => {
337
199
  category: "lwrUnresolvable/ssr";
338
200
  message: string;
339
- }, "message" | "advice"> & {
340
- advice: import("../types.js").DiagnosticAdvice;
341
- message: string;
342
201
  };
343
- };
344
- SERVER: {
345
- WARMUP_ERROR: (error: string) => Omit<{
202
+ }>;
203
+ SERVER: import("../types.js").OutputMessagesCategory<{
204
+ WARMUP_ERROR: (error: string) => {
346
205
  category: "lwrServer/warmupError";
347
206
  message: string;
348
- }, "message" | "advice"> & {
349
- advice: import("../types.js").DiagnosticAdvice;
350
- message: string;
351
207
  };
352
- UNEXPECTED_ERROR: (error: string) => Omit<{
208
+ UNEXPECTED_ERROR: (error: string) => {
353
209
  category: "lwrServer/fatal";
354
210
  message: string;
355
- }, "message" | "advice"> & {
356
- advice: import("../types.js").DiagnosticAdvice;
357
- message: string;
358
211
  };
359
- SERVER_ERROR: (name: string) => Omit<{
212
+ SERVER_ERROR: (name: string) => {
360
213
  category: "lwrServer/fatal";
361
214
  message: string;
362
- }, "message" | "advice"> & {
363
- advice: import("../types.js").DiagnosticAdvice;
364
- message: string;
365
215
  };
366
- };
367
- APPLICATION: {
368
- ROUTE_HANDLER_ERROR: (route: string, error: string) => Omit<{
216
+ }>;
217
+ APPLICATION: import("../types.js").OutputMessagesCategory<{
218
+ ROUTE_HANDLER_ERROR: (route: string, error: string) => {
369
219
  category: "lwrApplication/routeHandler";
370
220
  message: string;
371
- }, "message" | "advice"> & {
372
- advice: import("../types.js").DiagnosticAdvice;
373
- message: string;
374
221
  };
375
- };
222
+ }>;
376
223
  };
377
224
  export * from './core-diagnostics.js';
378
225
  //# sourceMappingURL=index.d.ts.map
@@ -1,24 +1,15 @@
1
- export declare const server: {
2
- WARMUP_ERROR: (error: string) => Omit<{
1
+ export declare const server: import("../types.js").OutputMessagesCategory<{
2
+ WARMUP_ERROR: (error: string) => {
3
3
  category: "lwrServer/warmupError";
4
4
  message: string;
5
- }, "message" | "advice"> & {
6
- advice: import("../types.js").DiagnosticAdvice;
7
- message: string;
8
5
  };
9
- UNEXPECTED_ERROR: (error: string) => Omit<{
6
+ UNEXPECTED_ERROR: (error: string) => {
10
7
  category: "lwrServer/fatal";
11
8
  message: string;
12
- }, "message" | "advice"> & {
13
- advice: import("../types.js").DiagnosticAdvice;
14
- message: string;
15
9
  };
16
- SERVER_ERROR: (name: string) => Omit<{
10
+ SERVER_ERROR: (name: string) => {
17
11
  category: "lwrServer/fatal";
18
12
  message: string;
19
- }, "message" | "advice"> & {
20
- advice: import("../types.js").DiagnosticAdvice;
21
- message: string;
22
13
  };
23
- };
14
+ }>;
24
15
  //# sourceMappingURL=server.d.ts.map
@@ -1,143 +1,83 @@
1
- export declare const unresolvable: {
2
- ASSET: (assetPath: string) => Omit<{
1
+ export declare const unresolvable: import("../types.js").OutputMessagesCategory<{
2
+ ASSET: (assetPath: string) => {
3
3
  category: "lwrUnresolvable/asset";
4
4
  message: string;
5
- }, "message" | "advice"> & {
6
- advice: import("../types.js").DiagnosticAdvice;
7
- message: string;
8
5
  };
9
- DIR_ALIAS: (assetPath: string) => Omit<{
6
+ DIR_ALIAS: (assetPath: string) => {
10
7
  category: "lwrUnresolvable/asset";
11
8
  message: string;
12
- }, "message" | "advice"> & {
13
- advice: import("../types.js").DiagnosticAdvice;
14
- message: string;
15
9
  };
16
- MODULE: (moduleSpecifier: string) => Omit<{
10
+ MODULE: (moduleSpecifier: string) => {
17
11
  category: "lwrUnresolvable/module";
18
12
  message: string;
19
- }, "message" | "advice"> & {
20
- advice: import("../types.js").DiagnosticAdvice;
21
- message: string;
22
13
  };
23
- MODULE_ENTRY: (moduleSpecifier: string) => Omit<{
14
+ MODULE_ENTRY: (moduleSpecifier: string) => {
24
15
  category: "lwrUnresolvable/module";
25
16
  message: string;
26
- }, "message" | "advice"> & {
27
- advice: import("../types.js").DiagnosticAdvice;
28
- message: string;
29
17
  };
30
- BUNDLE: (specifier: string) => Omit<{
18
+ BUNDLE: (specifier: string) => {
31
19
  category: "lwrUnresolvable/bundle";
32
20
  message: string;
33
- }, "message" | "advice"> & {
34
- advice: import("../types.js").DiagnosticAdvice;
35
- message: string;
36
21
  };
37
- LWC_MODULE: (name: string) => Omit<{
22
+ LWC_MODULE: (name: string) => {
38
23
  category: "lwrUnresolvable/module";
39
24
  message: string;
40
- }, "message" | "advice"> & {
41
- advice: import("../types.js").DiagnosticAdvice;
42
- message: string;
43
25
  };
44
- SIGNED_MODULE: (moduleSpecifier: string, signature: string) => Omit<{
26
+ SIGNED_MODULE: (moduleSpecifier: string, signature: string) => {
45
27
  category: "lwrUnresolvable/module";
46
28
  message: string;
47
- }, "message" | "advice"> & {
48
- advice: import("../types.js").DiagnosticAdvice;
49
- message: string;
50
29
  };
51
- RESOURCE: (resourceSpecifier: string, resourceVersion: any) => Omit<{
30
+ RESOURCE: (resourceSpecifier: string, resourceVersion: any) => {
52
31
  category: "lwrUnresolvable/resource";
53
32
  message: string;
54
- }, "message" | "advice"> & {
55
- advice: import("../types.js").DiagnosticAdvice;
56
- message: string;
57
33
  };
58
- VIEW: (viewPath: string) => Omit<{
34
+ VIEW: (viewPath: string) => {
59
35
  category: "lwrUnresolvable/view";
60
36
  message: string;
61
- }, "message" | "advice"> & {
62
- advice: import("../types.js").DiagnosticAdvice;
63
- message: string;
64
37
  };
65
- VIEW_CONFIG: (configPath: string) => Omit<{
38
+ VIEW_CONFIG: (configPath: string) => {
66
39
  category: "lwrUnresolvable/view";
67
40
  message: string;
68
- }, "message" | "advice"> & {
69
- advice: import("../types.js").DiagnosticAdvice;
70
- message: string;
71
41
  };
72
- APP_CONFIG: (appId: string) => Omit<{
42
+ APP_CONFIG: (appId: string) => {
73
43
  category: "lwrUnresolvable/view";
74
44
  message: string;
75
- }, "message" | "advice"> & {
76
- advice: import("../types.js").DiagnosticAdvice;
77
- message: string;
78
45
  };
79
- INVALID_JSON: () => Omit<{
46
+ INVALID_JSON: () => {
80
47
  category: "lwrUnresolvable/invalid";
81
48
  message: string;
82
- }, "message" | "advice"> & {
83
- advice: import("../types.js").DiagnosticAdvice;
84
- message: string;
85
49
  };
86
- INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => Omit<{
50
+ INVALID_API_VERSION: (apiVersion: string, expectedVersion: any) => {
87
51
  category: "lwrUnresolvable/invalid";
88
52
  message: string;
89
- }, "message" | "advice"> & {
90
- advice: import("../types.js").DiagnosticAdvice;
91
- message: string;
92
53
  };
93
- INVALID_ENVIRONMENT: (environment: string) => Omit<{
54
+ INVALID_ENVIRONMENT: (environment: string) => {
94
55
  category: "lwrUnresolvable/invalid";
95
56
  message: string;
96
- }, "message" | "advice"> & {
97
- advice: import("../types.js").DiagnosticAdvice;
98
- message: string;
99
57
  };
100
- INVALID_SPECIFIER: (specifier: string) => Omit<{
58
+ INVALID_SPECIFIER: (specifier: string) => {
101
59
  category: "lwrUnresolvable/invalid";
102
60
  message: string;
103
- }, "message" | "advice"> & {
104
- advice: import("../types.js").DiagnosticAdvice;
105
- message: string;
106
61
  };
107
- LABEL_MODULE: (file: string, error: string) => Omit<{
62
+ LABEL_MODULE: (file: string, error: string) => {
108
63
  category: "lwrUnresolvable/label";
109
64
  message: string;
110
- }, "message" | "advice"> & {
111
- advice: import("../types.js").DiagnosticAdvice;
112
- message: string;
113
65
  };
114
- ROUTES_MODULE: (file: string, error: string) => Omit<{
66
+ ROUTES_MODULE: (file: string, error: string) => {
115
67
  category: "lwrUnresolvable/routes";
116
68
  message: string;
117
- }, "message" | "advice"> & {
118
- advice: import("../types.js").DiagnosticAdvice;
119
- message: string;
120
69
  };
121
- PRELOAD_MODULE: (specifier: string) => Omit<{
70
+ PRELOAD_MODULE: (specifier: string) => {
122
71
  category: "lwrUnresolvable/invalid";
123
72
  message: string;
124
- }, "message" | "advice"> & {
125
- advice: import("../types.js").DiagnosticAdvice;
126
- message: string;
127
73
  };
128
- INVALID_MODE: (mode: string) => Omit<{
74
+ INVALID_MODE: (mode: string) => {
129
75
  category: "lwrUnresolvable/invalid";
130
76
  message: string;
131
- }, "message" | "advice"> & {
132
- advice: import("../types.js").DiagnosticAdvice;
133
- message: string;
134
77
  };
135
- SSR_TIMEOUT: (specifier: string, time: number) => Omit<{
78
+ SSR_TIMEOUT: (specifier: string, time: number) => {
136
79
  category: "lwrUnresolvable/ssr";
137
80
  message: string;
138
- }, "message" | "advice"> & {
139
- advice: import("../types.js").DiagnosticAdvice;
140
- message: string;
141
81
  };
142
- };
82
+ }>;
143
83
  //# sourceMappingURL=unresolvable.d.ts.map
@@ -1,5 +1,5 @@
1
+ export * from './types.js';
1
2
  export * from './descriptions/index.js';
2
3
  export * from './errors.js';
3
4
  export * from './logger.js';
4
- export * from './types.js';
5
5
  //# sourceMappingURL=index.d.ts.map
package/build/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
+ export * from './types.js';
1
2
  export * from './descriptions/index.js';
2
3
  export * from './errors.js';
3
4
  export * from './logger.js';
4
- export * from './types.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,3 @@
1
- import type { DiagnosticCategory } from './categories';
2
1
  import type { Dict } from '@lwrjs/types';
3
2
  export type StaticMarkup = string;
4
3
  export type SourceLocation = {
@@ -136,4 +135,26 @@ export type DiagnosticAdviceStackFrame = {
136
135
  language: undefined | DiagnosticLanguage;
137
136
  sourceText?: string;
138
137
  };
138
+ export type DiagnosticCategory = DiagnosticLwrConfigCategory | DiagnosticCompiler | DiagnosticLwrUnresolvableCategory | DiagnosticLwrServer | DiagnosticLwrApplication | '...more here';
139
+ export type DiagnosticLwrConfigCategory = 'lwrConfig/invalidJson' | 'lwrConfig/invalidSchema';
140
+ export type DiagnosticLwrUnresolvableCategory = 'lwrUnresolvable/asset' | 'lwrUnresolvable/module' | 'lwrUnresolvable/bundle' | 'lwrUnresolvable/label' | 'lwrUnresolvable/routes' | 'lwrUnresolvable/resource' | 'lwrUnresolvable/view' | 'lwrUnresolvable/ssr' | 'lwrUnresolvable/invalid';
141
+ export type DiagnosticCompiler = 'compile/umd_transform';
142
+ export type DiagnosticLwrServer = 'lwrServer/warmupError' | 'lwrServer/invalidMode' | 'lwrServer/fatal';
143
+ export type DiagnosticLwrApplication = 'lwrApplication/routeHandler';
144
+ export type InputMessagesFactory = (...params: any[]) => Partial<DiagnosticDescription>;
145
+ export type InputMessagesCategory = {
146
+ [key: string]: Partial<DiagnosticDescription> | InputMessagesFactory;
147
+ };
148
+ export type OuputMessagesFactoryReturn<Ret extends Partial<DiagnosticDescription>> = Omit<Ret, 'message' | 'advice'> & {
149
+ advice: DiagnosticAdvice;
150
+ message: StaticMarkup;
151
+ };
152
+ export type OutputMessagesFactory<Func extends InputMessagesFactory> = (...params: Parameters<Func>) => OuputMessagesFactoryReturn<ReturnType<Func>>;
153
+ export type OutputMessagesValue<Value> = Value extends StaticMarkup ? {
154
+ message: StaticMarkup;
155
+ advice: DiagnosticAdvice;
156
+ } : Value extends Partial<DiagnosticDescription> ? OuputMessagesFactoryReturn<Value> : Value extends InputMessagesFactory ? OutputMessagesFactory<Value> : never;
157
+ export type OutputMessagesCategory<Input extends InputMessagesCategory> = {
158
+ [Key in keyof Input]: OutputMessagesValue<Input[Key]>;
159
+ };
139
160
  //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0-alpha.9",
7
+ "version": "0.13.0",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -31,11 +31,11 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "build": "tsc -b",
34
- "clean": "rm -rf build node_modules",
34
+ "clean": "rimraf build node_modules",
35
35
  "test": "jest"
36
36
  },
37
37
  "devDependencies": {
38
- "@lwrjs/types": "0.13.0-alpha.9",
38
+ "@lwrjs/types": "0.13.0",
39
39
  "jest": "^26.6.3",
40
40
  "ts-jest": "^26.5.6",
41
41
  "typescript": "^4.9.5"
@@ -46,5 +46,5 @@
46
46
  "volta": {
47
47
  "extends": "../../../package.json"
48
48
  },
49
- "gitHead": "a2a9e1dbf39a7b04c7a43433e004895b6f4c51a3"
49
+ "gitHead": "21dc6b8ffd2e633f36b46daf9e1563992c5143b9"
50
50
  }
@@ -1,5 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
3
-
4
- // packages/@lwrjs/diagnostics/src/categories.ts
5
- __markAsModule(exports);
@@ -1,7 +0,0 @@
1
- export type DiagnosticCategory = DiagnosticLwrConfigCategory | DiagnosticCompiler | DiagnosticLwrUnresolvableCategory | DiagnosticLwrServer | DiagnosticLwrApplication | '...more here';
2
- export type DiagnosticLwrConfigCategory = 'lwrConfig/invalidJson' | 'lwrConfig/invalidSchema';
3
- export type DiagnosticLwrUnresolvableCategory = 'lwrUnresolvable/asset' | 'lwrUnresolvable/module' | 'lwrUnresolvable/bundle' | 'lwrUnresolvable/label' | 'lwrUnresolvable/routes' | 'lwrUnresolvable/resource' | 'lwrUnresolvable/view' | 'lwrUnresolvable/ssr' | 'lwrUnresolvable/invalid';
4
- export type DiagnosticCompiler = 'compile/umd_transform';
5
- export type DiagnosticLwrServer = 'lwrServer/warmupError' | 'lwrServer/invalidMode' | 'lwrServer/fatal';
6
- export type DiagnosticLwrApplication = 'lwrApplication/routeHandler';
7
- //# sourceMappingURL=categories.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=categories.js.map