How to choose the correct Adobe version typedefs
masterThe types-for-adobe repository maintains a history of typedefs for each specific version of each host application.
Why version-specific types matter
- Compatibility: If you are developing for an older version (e.g., After Effects v18.0), using those specific typedefs ensures you don't use APIs that were only introduced in later versions.
- Commercial Tools: Targeting older versions allows for wider adoption among users who haven't updated their software.
- Internal Tools: Companies often mandate specific software versions; versioned typedefs allow for precise targeting of those environments.
Selection Strategy
- If targeting a broad user base: Use the version that most of your users are likely to have, or the version that includes the features you need, and specify that as a minimum requirement.
- If leveraging new features: Use the typedefs for the specific version where those features were introduced.
Reference Syntax
To use a specific version, use the triple-slash reference syntax in your .ts file:
/// <reference types="types-for-adobe/[Product]/[Version]"/>