docsforadobe / Types-for-Adobe

TypeScript types for Adobe: AfterEffects, Animate, Audition, Illustrator, InDesign, Photoshop, Premiere, ScriptUI.
517 stars 124 forks source link

Triple-slash directive doesn't work: cannot find type definition file #94

Open gvnnz opened 2 years ago

gvnnz commented 2 years ago

OS: Debian 11 TypeScript: Version 4.7.3

The Readme file suggests to use the triple-slash directive for including type definitions. For example

/// <reference types="types-for-adobe/Premiere/14.0""/>

This doesn't work for me: I get "Cannot find type definition file for 'types-for-adobe/Premiere/14.0"'.

The only way to specify type definitions is via the tsconfig.json file, like so:

{
    [...]
    "compilerOptions": {
        [...]
        "types": [
            "types-for-adobe/Premiere/14.0"
        ]
    }
}