angular-cn/packages/core/testing/src
Alex Rickabaugh 79466baef8 fix(ivy): remove metadata from *Def and introduce *DefWithMeta types (#26203)
Previously in Ivy, metadata for directives/components/modules/etc was
carried in .d.ts files inside type information encoded on the
DirectiveDef, ComponentDef, NgModuleDef, etc types of Ivy definition
fields. This works well, but has the side effect of complicating Ivy's
runtime code as these extra generic type parameters had to be specified
as <any> throughout the codebase. *DefInternal types were introduced
previously to mitigate this issue, but that's the wrong way to solve
the problem.

This commit returns *Def types to their original form, with no metadata
attached. Instead, new *DefWithMeta types are introduced that alias the
plain definition types and add extra generic parameters. This way the
only code that needs to deal with the extra metadata parameters is the
compiler code that reads and writes them - the existence of this metadata
is transparent to the runtime, as it should be.

PR Close #26203
2018-10-04 10:11:17 -07:00
..
async.ts docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
async_fallback.ts docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
async_test_completer.ts build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
before_each.ts docs: in doc comments, replace [aA]ngular2 with Angular (#15463) 2017-03-27 09:44:35 -07:00
component_fixture.ts docs: remove all deprecated `@stable` jsdoc tags (#23210) 2018-04-10 21:49:32 -07:00
fake_async.ts docs: fix invalid headings (#24000) 2018-06-13 16:47:40 -07:00
fake_async_fallback.ts style: fix whitespace and indentation in the testing guide (#21669) 2018-08-08 13:11:15 -07:00
lang_utils.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
logger.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
metadata_override.ts refactor(core): use Partial<T> for MetadataOverride (#24103) 2018-05-29 18:40:05 -04:00
metadata_overrider.ts feat(ivy): implement TestBed (#25369) 2018-08-14 11:58:47 -07:00
ng_zone_mock.ts perf(core): refactor NgZone, decrease size by 1.2Kb (#17773) 2017-07-01 10:29:56 -07:00
private_export_testing.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
r3_test_bed.ts fix(ivy): remove metadata from *Def and introduce *DefWithMeta types (#26203) 2018-10-04 10:11:17 -07:00
resolvers.ts feat(ivy): implement TestBed (#25369) 2018-08-14 11:58:47 -07:00
test_bed.ts fix(ivy): don't accidently read the inherited definition (#25736) 2018-09-11 07:09:38 -07:00
test_bed_common.ts refactor(ivy): cleanup the public API for core/testing (#25492) 2018-08-15 09:53:17 -07:00
test_compiler.ts refactor(bazel): convert most ts_library to ng_module (#22176) 2018-02-15 14:08:53 -08:00
testing.ts refactor(ivy): cleanup the public API for core/testing (#25492) 2018-08-15 09:53:17 -07:00
testing_internal.ts style: tslint enforces no debugger statements left behind (#25532) 2018-08-16 16:00:22 -07:00