From d38c2e3885c84e382a1d5c45b386a47605152057 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 18 May 2024 14:16:42 -0400 Subject: [PATCH] LDrawLoader should accepts onError callback in parse() (#964) --- types/three/examples/jsm/loaders/LDrawLoader.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/three/examples/jsm/loaders/LDrawLoader.d.ts b/types/three/examples/jsm/loaders/LDrawLoader.d.ts index 635a7ade2..8c30b3966 100644 --- a/types/three/examples/jsm/loaders/LDrawLoader.d.ts +++ b/types/three/examples/jsm/loaders/LDrawLoader.d.ts @@ -12,7 +12,7 @@ export class LDrawLoader extends Loader { setFileMap(fileMap: Record): void; setMaterials(materials: Material[]): void; - parse(text: string, path: string, onLoad: (data: Group) => void): void; + parse(text: string, path: string, onLoad: (data: Group) => void, onError?: (error: unknown) => void): void; addMaterial(material: Material): void; getMaterial(colourCode: string): Material | null;