angular-cn/packages
Paul Gschwendtner 10a1e1974b fix(platform-browser): debug element query predicates not compatible with strictFunctionTypes (#30993)
Currently developers can use the `By` class to construct common
`DebugElement` query predicates. e.g. `By.directive(MyDirective)`.

The `directive()` and `all()` predicates are currently returning
a predicate that works for `DebugElement` nodes. This return type
is too strict since the predicate is not specific to `DebugElement`
instances and can also apply to `DebugNode` instances.

Meaning that developers are currently able to use the `directive()`
predicate when using `queryAllNodes()`. This is a common practice
but will break when the project is compiled with TypeScript's
`--strictFunctionTypes` flag as the `DebugElement` predicate type
is not assignable to predicates for `DebugNode`. In order to make
these predicates usable with `--strictFuntionTypes` enabled, we
adjust the predicate type to reflect what is actually needed for
evaluation of the predicate.

PR Close #30993
2019-07-18 14:21:26 -07:00
..
animations build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
bazel fix(bazel): pass custom bazel compiler host rather than rewriting one (#31496) 2019-07-12 11:37:58 -04:00
benchpress build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
common refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
compiler refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
compiler-cli refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
core refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
docs
elements refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
examples refactor: fix remaining typescript strict flag failures (#30993) 2019-07-18 14:21:25 -07:00
forms refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
http refactor: fix remaining typescript strict flag failures (#30993) 2019-07-18 14:21:25 -07:00
language-service refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
platform-browser fix(platform-browser): debug element query predicates not compatible with strictFunctionTypes (#30993) 2019-07-18 14:21:26 -07:00
platform-browser-dynamic build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
platform-server refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
platform-webworker refactor: fix remaining typescript strict flag failures (#30993) 2019-07-18 14:21:25 -07:00
platform-webworker-dynamic build: convert entry_point to label (#30627) 2019-06-11 00:03:11 +00:00
private/testing test(ivy): add onlyInIvy perf counter expectations (#30339) 2019-05-09 11:22:00 -07:00
router refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
service-worker refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
upgrade refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
zone.js fix(zone.js): fix zone for Jasmine 3.3. (#31497) 2019-07-12 13:46:14 -04:00
BUILD.bazel refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
README.md
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 (#27880) 2019-01-11 11:15:59 -08:00
system.d.ts
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 refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
types.d.ts build: switch to typescript's es2015 typings (#28570) 2019-02-06 14:17:55 -05:00

README.md

Angular

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

License: MIT