stc icon indicating copy to clipboard operation
stc copied to clipboard

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

Open sunrabbit123 opened this issue 1 year ago • 0 comments

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 avatar Aug 09 '23 13:08 sunrabbit123