From 70c2b36339a50a6cfe0e860d8d2fb66ee9ea6ae6 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Fri, 9 Feb 2018 12:42:48 +0800 Subject: [PATCH] change type of `SkinViewer.domElement` to `Node` `Node` is enough for use --- types/viewer.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/viewer.d.ts b/types/viewer.d.ts index af06710..44b77ab 100644 --- a/types/viewer.d.ts +++ b/types/viewer.d.ts @@ -4,7 +4,7 @@ import { Animation } from "./animation"; import { PlayerObject } from "./model"; interface SkinViewerOptions { - domElement: Element; + domElement: Node; animation?: Animation; slim?: boolean; skinUrl?: string; @@ -18,7 +18,7 @@ export class SkinViewer { public capeUrl: string; public width: number; public height: number; - public readonly domElement: Element; + public readonly domElement: Node; public animation: Animation; public animationPaused: boolean; public animationTime: number;