ngneat / reactive-forms

(Angular Reactive) Forms with Benefits 😉

Home Page:https://www.netbasal.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complex typings broke auto type definition

xaosaki opened this issue · comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

This line breaks overrides.


Compiler go in to 1 or last override
image
image

Expected behavior

Compiler should go in 3 override. If i comment linked line all will be ok.
image

Minimal reproduction of the problem with instructions

https://stackblitz.com/edit/angular-ivy-22wuvb?file=src%2Fapp%2Fapp.component.ts

For easy investigation i created file https://stackblitz.com/edit/angular-ivy-22wuvb?file=simple.ts its a simplest version with reproduction case.

Environment

I run stackblitz project in PhpStorm 2021.2.1

May have the same roots that #103

I'm not sure what you mean. There are no errors in stackblitz:

image

You need download stackblitz example and open it in IDE with advanced typescript support. ex WebStorm or PhpStorm. You think it's IDE bug?

Yes.

VsCode works fine:

image

Ок, i looked at typescriptlang.org/play and there was correct to. I will create issue in JetBrains tracker.

P.S. Can you self look at #103 ?

I asked from the one that added this feature.