From c26471b104f3e588d0343dcdb4b88837dae566a2 Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Thu, 3 Feb 2022 23:12:14 +0800 Subject: [PATCH 1/2] fix return type of CompositeAnimation.add --- src/animation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/animation.ts b/src/animation.ts index 49e887f..8c723fa 100644 --- a/src/animation.ts +++ b/src/animation.ts @@ -83,9 +83,9 @@ class AnimationWrapper implements SubAnimationHandle, IAnimation { export class CompositeAnimation implements IAnimation { - readonly handles: Set = new Set(); + readonly handles: Set = new Set(); - add(animation: Animation): AnimationHandle { + add(animation: Animation): SubAnimationHandle { const handle = new AnimationWrapper(animation); handle.remove = (): void => { this.handles.delete(handle); From 4afe4f087640f8d22e93d3ee756470cc928c4d2d Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Thu, 3 Feb 2022 23:12:59 +0800 Subject: [PATCH 2/2] 2.2.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1f8e5d5..32df32d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "skinview3d", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "skinview3d", - "version": "2.2.0", + "version": "2.2.1", "license": "MIT", "dependencies": { "@types/three": "^0.136.1", diff --git a/package.json b/package.json index 673da62..72b6a74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "skinview3d", - "version": "2.2.0", + "version": "2.2.1", "description": "Three.js powered Minecraft skin viewer", "main": "libs/skinview3d.js", "type": "module",