Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant