arktypea
arktype14mo ago
Dimava

Compiling scope to interfaces

I have a huge scope and I want to extract 10+ interfaces from it, preferably in a way that would compile plainly to d.ts

And then remake the scope with using those interfaces

const S = scope({
  foo: { a: number }
  bar: { foo: foo }
})
export interface Foo = ???
export interface Bar = ??? // should be { foo: Foo }


What the best way for that
Was this page helpful?