Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[todo]: closure or Indexing, etc. should follow the scope of where they are declared. #1060

Open
sunrabbit123 opened this issue Aug 9, 2023 · 0 comments

Comments

@sunrabbit123
Copy link
Collaborator

sunrabbit123 commented Aug 9, 2023

interface A {
    a: 'a';
}
namespace C {
  interface B1 extends A {
      b: 'b';
      c: OldDiff<keyof this, keyof A>;
  }
}

type c1 = C.B1['c']; // 'c' | 'b'

Currently, our STC does not have a scope for where types are declared.
This requires quite a bit of structure swapping.

related issue

https://github.com/dudykr/stc/pull/1059/files#r1288473639

@sunrabbit123 sunrabbit123 changed the title TODO: closure or Indexing, etc. should follow the scope of where they are declared. [todo]: closure or Indexing, etc. should follow the scope of where they are declared. Aug 11, 2023
@sunrabbit123 sunrabbit123 added this to the v1.0: Feature parity milestone Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant