(config: OutputOptions)
| 355 | }; |
| 356 | |
| 357 | const getGeneratedCode = (config: OutputOptions): NormalizedOutputOptions['generatedCode'] => { |
| 358 | const configWithPreset = getOptionWithPreset( |
| 359 | config.generatedCode, |
| 360 | generatedCodePresets, |
| 361 | 'output.generatedCode', |
| 362 | URL_OUTPUT_GENERATEDCODE, |
| 363 | '' |
| 364 | ); |
| 365 | return { |
| 366 | arrowFunctions: configWithPreset.arrowFunctions === true, |
| 367 | constBindings: configWithPreset.constBindings === true, |
| 368 | objectShorthand: configWithPreset.objectShorthand === true, |
| 369 | reservedNamesAsProps: configWithPreset.reservedNamesAsProps !== false, |
| 370 | symbols: configWithPreset.symbols === true |
| 371 | }; |
| 372 | }; |
| 373 | |
| 374 | const getIndent = (config: OutputOptions, compact: boolean): NormalizedOutputOptions['indent'] => { |
| 375 | if (compact) { |
no test coverage detected
searching dependent graphs…