angular-docs-cn/packages
Ayaz Hafiz 8be0972836 fix(language-service): properly evaluate types in comparable expressions (#36529)
This commit fixes how the language service evaluates the compatibility
of types to work with arbitrary union types. As a result, compatibility
checks are now more strict and can catch similarities or differences
more clearly.

```
number|string == string|null  // OK
number|string == number       // OK
number|string == null         // not comparable
number == string              // not comparable
```

Using Ivy as a backend should provide these diagnoses for free, but we
can backfill them for now.

Closes https://github.com/angular/vscode-ng-language-service/issues/723

PR Close #36529
2020-04-16 16:07:47 -04:00
..
animations build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
bazel build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
benchpress build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
common fix(common): format day-periods that cross midnight (#36611) 2020-04-16 09:40:40 -07:00
compiler fix(compiler): avoid generating i18n attributes in plain form (#36422) 2020-04-16 09:44:10 -07:00
compiler-cli refactor(ngcc): moved shared setup into a single function (#36637) 2020-04-16 16:05:12 -04:00
core fix(core): prevent unknown property check for AOT-compiled components (#36072) 2020-04-16 09:45:16 -07:00
docs refactor(core): remove deprecated Renderer (#33019) 2019-10-08 09:23:00 -07:00
elements build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
examples build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
forms test: disable failing saucelabs tests (#36620) 2020-04-14 10:13:33 -07:00
http build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
language-service fix(language-service): properly evaluate types in comparable expressions (#36529) 2020-04-16 16:07:47 -04:00
localize build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
platform-browser build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
platform-browser-dynamic build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
platform-server build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
platform-webworker build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
platform-webworker-dynamic build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
private/testing build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
router build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
service-worker build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
upgrade build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
zone.js build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js build: allow custom module resolution for ts-circular-deps tests (#36226) 2020-03-27 11:14:49 -07:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json build: enable IDE type checking of $localize code (#35711) 2020-02-28 07:09:50 -08:00
types.d.ts build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT