Types-for-Adobe icon indicating copy to clipboard operation
Types-for-Adobe copied to clipboard

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

Open gvnnz opened this issue 3 years ago • 0 comments

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"
        ]
    }
}

gvnnz avatar Jun 10 '22 12:06 gvnnz