change type of `SkinViewer.domElement` to `Node`

`Node` is enough for use
This commit is contained in:
yushijinhun 2018-02-09 12:42:48 +08:00
parent 14fabb3e02
commit 70c2b36339
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 2 additions and 2 deletions

4
types/viewer.d.ts vendored
View File

@ -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;