diff --git a/src/Node.ts b/src/Node.ts index d31723ff4..86ee06f7f 100644 --- a/src/Node.ts +++ b/src/Node.ts @@ -198,7 +198,8 @@ export abstract class Node { // 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) { diff --git a/src/types.ts b/src/types.ts index 6ce992fed..f9d8af1fd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ export interface GetSet { (): Type; - (v: Type): This; + (v: Type | null | undefined): This; } export interface Vector2d {