If a TS file consumes a .d.ts file that contains errors, sometimes the consumer cannot build because of these errors. Other times, TS silently converts the problematic types to any.
What are the rules for when TS chooses to report these errors? I haven't found any pattern.