Skip to content

Commit 62ad48d

Browse files
committed
update types
1 parent 5492950 commit 62ad48d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const keys = [
149149
The final animated value can be returned by calling the `animate` function.
150150

151151
```javascript
152-
eKeys.animate(keys, time);
152+
eKeys.animate(keys, time? = thisLayer.time);
153153
```
154154
155155
#### `animate()` Function Inputs
@@ -188,15 +188,15 @@ const inKeys = [
188188
];
189189

190190
// Animate
191-
eKeys.animate(inKeys, time);
191+
eKeys.animate(inKeys);
192192
```
193193
194194
You can also [destructure](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) `animate` from the `sourceData` object:
195195
196196
```javascript
197197
const { animate } = footage('eKeys.jsx').sourceData;
198198
// ...
199-
animate(inKeys, time);
199+
animate(inKeys);
200200
```
201201
202202
[Back To Top ↑]
@@ -247,7 +247,7 @@ animate(inKeys, time);
247247
const outKeys;
248248
const animOut = true;
249249
const keys = animOut ? [...inKeys] : [...inKeys, ...outKeys];
250-
eKeys.animate(keys, time);
250+
eKeys.animate(keys);
251251
```
252252
253253
</p>

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ekeys",
3-
"version": "4.3.0",
3+
"version": "4.4.0",
44
"description": "Animation engine for After Effects expressions",
55
"private": true,
66
"main": "dist/eKeys.jsx",
@@ -40,6 +40,6 @@
4040
"typescript": "^3.9.7"
4141
},
4242
"dependencies": {
43-
"expression-globals-typescript": "^2.1.0"
43+
"expression-globals-typescript": "^3.0.0"
4444
}
4545
}

0 commit comments

Comments
 (0)