@lwrjs/types 0.11.0-alpha.2 → 0.11.0-alpha.4
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/config.d.ts +6 -0
- package/build/server.d.ts +0 -1
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export interface LwrGlobalConfig {
|
|
|
107
107
|
staticSiteGenerator?: StaticSiteGenerator;
|
|
108
108
|
locker?: LwrLockerConfig;
|
|
109
109
|
uriTransformers?: ServiceConfig[];
|
|
110
|
+
i18n?: I18NConfig;
|
|
110
111
|
}
|
|
111
112
|
type RequiredPick<T, K extends keyof T> = {
|
|
112
113
|
[P in K]-?: T[P];
|
|
@@ -140,6 +141,7 @@ export interface NormalizedLwrGlobalConfig extends Required<Omit<LwrGlobalConfig
|
|
|
140
141
|
assetTransformers: ServiceEntry[];
|
|
141
142
|
uriTransformers: ServiceEntry[];
|
|
142
143
|
lwc: NormalizedLwcConfig;
|
|
144
|
+
i18n: I18NConfig;
|
|
143
145
|
}
|
|
144
146
|
export interface StaticSiteGenerator {
|
|
145
147
|
outputDir?: string;
|
|
@@ -277,5 +279,9 @@ export interface HooksPlugin {
|
|
|
277
279
|
export interface Locale {
|
|
278
280
|
id: string;
|
|
279
281
|
}
|
|
282
|
+
export interface I18NConfig {
|
|
283
|
+
defaultLocale: string;
|
|
284
|
+
locales: Locale[];
|
|
285
|
+
}
|
|
280
286
|
export {};
|
|
281
287
|
//# sourceMappingURL=config.d.ts.map
|
package/build/server.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ export interface InternalAppServer<T extends ServerTypes> {
|
|
|
32
32
|
get(path: string | Array<string>, middleware: MiddlewareFunction): void;
|
|
33
33
|
post(path: string | Array<string>, middleware: MiddlewareFunction): void;
|
|
34
34
|
initRoutes(): void;
|
|
35
|
-
useCompression(): void;
|
|
36
35
|
getRegexWildcard(): string;
|
|
37
36
|
}
|
|
38
37
|
export type PublicAppServer<T extends ServerTypes> = Pick<InternalAppServer<T>, 'use' | 'all' | 'get' | 'post' | 'getRegexWildcard'>;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -b"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
|
-
"version": "0.11.0-alpha.
|
|
11
|
+
"version": "0.11.0-alpha.4",
|
|
12
12
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=16.0.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "89a7e9815e0e381d9fd67212f0471d9a11f73985"
|
|
33
33
|
}
|