File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
webpack/localization-plugin/src Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ export interface ILocalizationPluginOptions {
4848 localizationStatsDropPath? : string ;
4949 // (undocumented)
5050 localizedStrings: ILocales ;
51+ // (undocumented)
52+ typingsOptions? : ITypingsGenerationOptions ;
5153}
5254
5355// @public (undocumented)
@@ -89,7 +91,7 @@ export interface ILocFilePreprocessorOptions {
8991 // (undocumented)
9092 srcFolder: string ;
9193 // (undocumented)
92- terminal: Terminal ;
94+ terminal? : Terminal ;
9395}
9496
9597// @internal (undocumented)
@@ -100,6 +102,14 @@ export interface _IStringPlaceholder {
100102 value: string ;
101103}
102104
105+ // @public (undocumented)
106+ export interface ITypingsGenerationOptions {
107+ // (undocumented)
108+ generatedTsFolder: string ;
109+ // (undocumented)
110+ sourceRoot? : string ;
111+ }
112+
103113// @public
104114export class LocalizationPlugin implements Webpack .Plugin {
105115 constructor (options : ILocalizationPluginOptions );
@@ -114,7 +124,9 @@ export class LocFilePreprocessor {
114124 constructor (options : ILocFilePreprocessorOptions );
115125 // (undocumented)
116126 generateTypings(): void ;
117- }
127+ // (undocumented)
128+ runWatcher(): void ;
129+ }
118130
119131
120132// (No @packageDocumentation comment for this package)
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export class TypingsGenerator {
111111 } ) ;
112112 }
113113
114- private _parseFileAndGenerateTypings ( locFilePath ) : void {
114+ private _parseFileAndGenerateTypings ( locFilePath : string ) : void {
115115 const locFileData : ILocFile = LocFileParser . parseLocFile ( {
116116 filePath : locFilePath ,
117117 content : FileSystem . readFile ( locFilePath ) ,
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ export interface IDefaultLocaleOptions {
1515 passthroughLocaleName ?: string ;
1616}
1717
18+ /**
19+ * @public
20+ */
1821export interface ITypingsGenerationOptions {
1922 generatedTsFolder : string ;
2023 sourceRoot ?: string ;
You can’t perform that action at this time.
0 commit comments