coursera / courier

Data interchange for the modern web + mobile stack.
http://coursera.github.io/courier/
Apache License 2.0
98 stars 24 forks source link

Generated typescript for recursively defined records import themselves #84

Open rhysormond opened 3 years ago

rhysormond commented 3 years ago

When generating typescript bindings from courier records that contain recursive definitions, the generated typescript interface file includes an invalid import of itself.

record test {
  recursiveField: test
}
import { test } from "./.test";

export interface test {

  recursiveField : test;
}