@lottiefiles/creator-api-types
v1.0.1
Published
TypeScript type definitions for the Creator API
Downloads
372
Readme
@lottiefiles/creator-api-types
TypeScript type definitions for the Lottie Creator plugin and scripting API. Get full type-safety and editor autocompletion when writing scripts and plugins for Creator.
Installation
npm install --save-dev @lottiefiles/creator-api-typesUsage
To make these type definitions globally available without needing imports, configure your
tsconfig.json:
{
"compilerOptions": {
"typeRoots": [
"./node_modules/@types",
"./node_modules/@lottiefiles/creator-api-types"
]
}
}Now you can use the types without any import statements:
creator.ui.show();