angular-docs-cn/goldens/public-api/core
Alan Agius f97d8a9cbd refactor: `EventEmitter` to retain behaviour of pre TypeScript 3.9 (#36989)
TypeScript 3.9 introduced a breaking change where extends `any` no longer acts as `any`, instead it acts as `unknown`.

With this change we retain the behavior we had with TS 3.8 which is;

When using the `EventEmitter` as a type you must always provide a  type;
```ts
let emitter: EventEmitter<string>
```

and when initializing the `EventEmitter` class you can either provide a  type or or use the fallback type which is `any`

```ts
const emitter = new EventEmitter(); // EventEmitter<any>
const emitter = new EventEmitte<string>(); // EventEmitter<string>
``

PR Close #36989
2020-05-14 10:50:30 -07:00
..
testing ci: move public-api goldens to goldens directory (#35768) 2020-03-10 20:58:39 -04:00
core.d.ts refactor: `EventEmitter` to retain behaviour of pre TypeScript 3.9 (#36989) 2020-05-14 10:50:30 -07:00
global_utils.d.ts ci: move public-api goldens to goldens directory (#35768) 2020-03-10 20:58:39 -04:00