angular/goldens/public-api/compiler-cli/compiler_options.api.md
Doug Parker 7bfe81700b refactor(compiler): add i18nPreserveWhitespaceForLegacyExtraction (#56507)
This configures whether or not to preserve whitespace content when extracting messages from Angular templates in the legacy (View Engine) extraction pipeline.

This includes several bug fixes which unfortunately cannot be landed without changing message IDs in a breaking fashion and are necessary to properly trim whitespace. Instead these bug fixes are included only when the new flag is disabled.

PR Close #56507
2024-08-27 13:13:57 -07:00

2.2 KiB

API Report File for "angular-srcs"

Do not edit this file. It is a report generated by API Extractor.


// @public
export interface BazelAndG3Options {
    annotateForClosureCompiler?: boolean;
    generateDeepReexports?: boolean;
    generateExtraImportsInLocalMode?: boolean;
    onlyExplicitDeferDependencyImports?: boolean;
    onlyPublishPublicTypingsForNgModules?: boolean;
}

// @public
export enum DiagnosticCategoryLabel {
    Error = "error",
    Suppress = "suppress",
    Warning = "warning"
}

// @public
export interface DiagnosticOptions {
    extendedDiagnostics?: {
        defaultCategory?: DiagnosticCategoryLabel;
        checks?: {
            [Name in ExtendedTemplateDiagnosticName]?: DiagnosticCategoryLabel;
        };
    };
}

// @public
export interface I18nOptions {
    enableI18nLegacyMessageIdFormat?: boolean;
    i18nInLocale?: string;
    i18nNormalizeLineEndingsInICUs?: boolean;
    i18nOutFile?: string;
    i18nOutFormat?: string;
    i18nOutLocale?: string;
    i18nPreserveWhitespaceForLegacyExtraction?: boolean;
    i18nUseExternalIds?: boolean;
}

// @public
export interface LegacyNgcOptions {
    // @deprecated
    allowEmptyCodegenFiles?: boolean;
    flatModuleId?: string;
    flatModuleOutFile?: string;
    // @deprecated
    fullTemplateTypeCheck?: boolean;
    preserveWhitespaces?: boolean;
    strictInjectionParameters?: boolean;
}

// @public
export interface MiscOptions {
    compileNonExportedClasses?: boolean;
    disableTypeScriptVersionCheck?: boolean;
    forbidOrphanComponents?: boolean;
}

// @public
export interface StrictTemplateOptions {
    strictAttributeTypes?: boolean;
    strictContextGenerics?: boolean;
    strictDomEventTypes?: boolean;
    strictDomLocalRefTypes?: boolean;
    strictInputAccessModifiers?: boolean;
    strictInputTypes?: boolean;
    strictLiteralTypes?: boolean;
    strictNullInputTypes?: boolean;
    strictOutputEventTypes?: boolean;
    strictSafeNavigationTypes?: boolean;
    strictTemplates?: boolean;
}

// @public
export interface TargetOptions {
    compilationMode?: 'full' | 'partial' | 'experimental-local';
}

// (No @packageDocumentation comment for this package)