From 516d4bb607c925d0983048525083051e156c2c25 Mon Sep 17 00:00:00 2001 From: nofree Date: Wed, 23 May 2018 13:29:32 +0800 Subject: [PATCH] Fix FontLoader/Font json type declare --- types/three/three-core.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index a7f7950a48..1d6831805a 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -1911,7 +1911,7 @@ export class Layers { } export class Font { - constructor(jsondata: string); + constructor(jsondata: any); data: string; @@ -2214,7 +2214,7 @@ export class FontLoader { manager: LoadingManager; load(url: string, onLoad?: (responseFont: Font) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; - parse(json: string): Font; + parse(json: any): Font; } /**