Nova Types provides a types declaration for the Nova API up-to-date with v10.6
. Future declaration updates will be delivered through this extension.
Even if you can continue to write your Nova extensions in pure JavaScript, Nova Types relies on TypeScript to provide types suggestions. Therefore, make sure to have a TypeScript extension installed as well.
Nova Types has been tested with the following TypeScript extension:
- TypeScript by Cameron Little
To generate Nova Types:
- Select the Extensions → Nova Types → Generate Types Declaration menu item; or
- Open the command palette and type
Generate Types Declaration
Unless you specify otherwise, Nova Types will check for updates any time you open a local project with a previously generated types declaration.
Types definition will be generated in a /Scripts/types/
folder of your project by default.
You can change this location and other options on a per-project basis in Project → Project Settings → Nova Types
To get the most out of Nova Types it's highly recommend to add a jsconfig.json
file with the following configuration to the project:
{
"compilerOptions": {
"checkJs": true
}
}