Closed Southclaws closed 1 year ago
Can't remember what exactly caused this but it's possible to write a Go struct that generates TypeScript code with schemas used before they are declared.
A DAG would help, or some basic heuristic to determine linear usage order.
DAG then breadth first walk to pull into array, then reverse the array and write out.
Resolved by #6
Can't remember what exactly caused this but it's possible to write a Go struct that generates TypeScript code with schemas used before they are declared.
A DAG would help, or some basic heuristic to determine linear usage order.