Skip to content

Commit

Permalink
typescript fixes. close #1866
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Dec 23, 2024
1 parent 6e28a2a commit 9e790a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
// for transform the cache can be NOT empty
// but we still need to recalculate it if it is dirty
const isTransform = attr === TRANSFORM || attr === ABSOLUTE_TRANSFORM;
const invalid = cache === undefined || (isTransform && cache.dirty === true);
const invalid =
cache === undefined || (isTransform && cache.dirty === true);

// if not cached, we need to set it using the private getter method.
if (invalid) {
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface GetSet<Type, This> {
(): Type;
(v: Type): This;
(v: Type | null | undefined): This;
}

export interface Vector2d {
Expand Down

0 comments on commit 9e790a3

Please sign in to comment.