Skip to content

Commit 6be84b6

Browse files
committed
Fix a few linting errors.
1 parent 2e0bdff commit 6be84b6

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

common/reviews/api/localization-plugin.api.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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
104114
export 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)

webpack/localization-plugin/src/TypingsGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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),

webpack/localization-plugin/src/interfaces.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export interface IDefaultLocaleOptions {
1515
passthroughLocaleName?: string;
1616
}
1717

18+
/**
19+
* @public
20+
*/
1821
export interface ITypingsGenerationOptions {
1922
generatedTsFolder: string;
2023
sourceRoot?: string;

0 commit comments

Comments
 (0)