angular/goldens/public-api/common/errors.md
Pawel Kozlowski 28a5925f53 fix(common): use === operator to match NgSwitch cases (#51504)
This change adjust the equality comparator used by NgSwitch - now it
defaults to === from previously used ==. This change is based on the
following reasoning:
- align behaviour with the built-in switch block);
- improve performance (avoid type coercion);
- enable better type-checking.

BREAKING CHANGE:

the NgSwitch directive now defaults to the === equality operator,
migrating from the previously used ==. NgSwitch expressions and / or
individual condition values need adjusting to this stricter equality
check. The added warning message should help pinpointing NgSwitch
usages where adjustements are needed.

Fixes #33873

PR Close #51504
2023-10-09 10:10:21 -07:00

1.3 KiB

API Report File for "angular-srcs"

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


// @public
export const enum RuntimeErrorCode {
    // (undocumented)
    EQUALITY_NG_SWITCH_DIFFERENCE = 2001,
    // (undocumented)
    INVALID_INPUT = 2952,
    // (undocumented)
    INVALID_LOADER_ARGUMENTS = 2959,
    // (undocumented)
    INVALID_PIPE_ARGUMENT = 2100,
    // (undocumented)
    LCP_IMG_MISSING_PRIORITY = 2955,
    // (undocumented)
    LCP_IMG_NGSRC_MODIFIED = 2964,
    // (undocumented)
    MISSING_BUILTIN_LOADER = 2962,
    // (undocumented)
    MISSING_NECESSARY_LOADER = 2963,
    // (undocumented)
    NG_FOR_MISSING_DIFFER = -2200,
    // (undocumented)
    OVERSIZED_IMAGE = 2960,
    // (undocumented)
    PARENT_NG_SWITCH_NOT_FOUND = 2000,
    // (undocumented)
    PRIORITY_IMG_MISSING_PRECONNECT_TAG = 2956,
    // (undocumented)
    REQUIRED_INPUT_MISSING = 2954,
    // (undocumented)
    TOO_MANY_PRELOADED_IMAGES = 2961,
    // (undocumented)
    UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE = 2958,
    // (undocumented)
    UNEXPECTED_INPUT_CHANGE = 2953,
    // (undocumented)
    UNEXPECTED_SRC_ATTR = 2950,
    // (undocumented)
    UNEXPECTED_SRCSET_ATTR = 2951
}

// (No @packageDocumentation comment for this package)