Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gvnnz opened this issue Jun 10, 2022 · 0 comments
Open

Comments

@gvnnz
Copy link
Contributor

gvnnz commented Jun 10, 2022

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"
        ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant