Skip to content

Commit 6211a14

Browse files
committed
Updates based on demo branch
1 parent 23b2658 commit 6211a14

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

apps/api-extractor/src/api/ExtractorConfig.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ export class ExtractorConfig {
197197
/** {@inheritDoc IConfigTsdocMetadata.tsdocMetadataFilePath} */
198198
public readonly tsdocMetadataFilePath: string;
199199

200-
/** {@inheritDoc IConfigFile.newlineKind} */
200+
/**
201+
* Specifies what type of newlines API Extractor should use when writing output files. By default, the output files
202+
* will be written with Windows-style newlines.
203+
*/
201204
public readonly newlineKind: NewlineKind;
202205

203206
/** {@inheritDoc IConfigFile.messages} */
@@ -661,10 +664,10 @@ export class ExtractorConfig {
661664

662665
let newlineKind: NewlineKind;
663666
switch (configObject.newlineKind) {
664-
case 'Lf':
667+
case 'lf':
665668
newlineKind = NewlineKind.Lf;
666669
break;
667-
case 'OsDefault':
670+
case 'os':
668671
newlineKind = NewlineKind.OsDefault;
669672
break;
670673
default:

apps/api-extractor/src/api/IConfigFile.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,12 @@ export interface IConfigFile {
368368
tsdocMetadata?: IConfigTsdocMetadata;
369369

370370
/**
371-
* Specifies the type of newline to use in all generated files.
371+
* Specifies what type of newlines API Extractor should use when writing output files. By default, the output files
372+
* will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead.
373+
* To use the OS's default newline kind, specify "os".
374+
* @defaultValue 'crlf'
372375
*/
373-
newlineKind?: 'CrLf' | 'Lf' | 'OsDefault';
376+
newlineKind?: 'crlf' | 'lf' | 'os';
374377

375378
/**
376379
* {@inheritDoc IExtractorMessagesConfig}

apps/api-extractor/src/schemas/api-extractor-template.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@
264264
},
265265

266266
/**
267-
* Specifies the type of newline to use in all generated files.
267+
* Specifies what type of newlines API Extractor should use when writing output files. By default, the output files
268+
* will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead.
269+
* To use the OS's default newline kind, specify "os".
268270
*
269-
* Supported values are "CrLf", "Lf", or "OsDefault".
270-
*
271-
* DEFAULT VALUE: "CrLf"
271+
* DEFAULT VALUE: "crlf"
272272
*/
273-
// "newlineKind": "CrLf",
273+
// "newlineKind": "crlf",
274274

275275
/**
276276
* Configures how API Extractor reports error and warning messages produced during analysis.

apps/api-extractor/src/schemas/api-extractor.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@
143143
},
144144

145145
"newlineKind": {
146-
"description": "Specifies the type of newline to use in all generated files.",
146+
"description": "Specifies what type of newlines API Extractor should use when writing output files. By default, the output files will be written with Windows-style newlines. To use POSIX-style newlines, specify \"lf\" instead. To use the OS's default newline kind, specify \"os\".",
147147
"type": "string",
148-
"enum": ["CrLf", "Lf", "OsDefault"],
149-
"default": "CrLf"
148+
"enum": ["crlf", "lf", "os"],
149+
"default": "crlf"
150150
},
151151

152152
"messages": {

common/reviews/api/api-extractor.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export interface IConfigFile {
186186
extends?: string;
187187
mainEntryPointFilePath: string;
188188
messages?: IExtractorMessagesConfig;
189-
newlineKind?: 'CrLf' | 'Lf' | 'OsDefault';
189+
newlineKind?: 'crlf' | 'lf' | 'os';
190190
projectFolder?: string;
191191
testMode?: boolean;
192192
// @beta

0 commit comments

Comments
 (0)