Skip to content

Commit 8a51149

Browse files
committed
add type importing description
1 parent f6e0837 commit 8a51149

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ This library mocks the After Effects expressions API in TypeScript, providing ty
4141

4242
You can then use the properties and methods of these objects as you would within expressions.
4343

44+
4. Import types
45+
46+
This package makes available After Effects specific types, such as `Layer`, `Comp`, `Color`, `Vector` and more. See `src/index.ts` for the available types.
47+
48+
```js
49+
import { Comp, Layer, Color } from "expression-globals-typescript";
50+
```
51+
4452
## Why?
4553

4654
When writing expressions in **Typescript** using our [Expressions Library Template](https://github.com/motiondeveloper/expressions-library-template) and [rollup-plugin-ae-jsx](https://www.npmjs.com/package/rollup-plugin-ae-jsx), TypeScript will complain if you try to use the global functions and objects available in expressions.

0 commit comments

Comments
 (0)