stc
stc copied to clipboard
feat(ts/analyzer): Handle assignment of a type parameter extending an intrinsic type
Description:
Apply intrinsic to extend's constraints where applicable.
BREAKING CHANGE:
Related issue (if exists):
Fix #335.
Can you fix clippy issues?
Is it better if, instead of converting the type completely, I store the resolved constraint inside the type, then modify the assignment check to compare against the resolved constraint? This way would be quite similar to how tsc behaves.
Another way would be to resolve the constraint only during assignment check.
Yes it would be better
@kdy1 sorry for the long wait, it's ready now!