I'm writing typescript definitions for a Javascript API with a deprecated method. Here's an extract of the documentation (they say …