ahrefs / atd

Static types for JSON APIs
Other
309 stars 52 forks source link

atdts: ignore 'wrap' types #353

Closed mjambon closed 9 months ago

mjambon commented 9 months ago

The following should not produce an error:

$ cat toto.atd 
type t = int wrap
$ atdts toto.atd
Error: TODO: wrap

The wrap should be ignored as we do for example in the atdpy implementation.

aryx commented 9 months ago

it's atdts, not atdpy

mjambon commented 9 months ago

While we're at it, let's add an option to atdcat for removing all wraps. This offers a way to fix the problem for all backends. It's also good for diffs, educational, etc.