diff --git a/types/three/examples/jsm/loaders/GLTFLoader.d.ts b/types/three/examples/jsm/loaders/GLTFLoader.d.ts index bafdf1893..c60f0a864 100644 --- a/types/three/examples/jsm/loaders/GLTFLoader.d.ts +++ b/types/three/examples/jsm/loaders/GLTFLoader.d.ts @@ -131,6 +131,7 @@ export class GLTFParser { } export interface GLTFLoaderPlugin { + readonly name: string; beforeRoot?: (() => Promise | null) | undefined; afterRoot?: ((result: GLTF) => Promise | null) | undefined; loadNode?: ((nodeIndex: number) => Promise | null) | undefined; diff --git a/types/three/test/integration/loaders-gltfloader-plugin.ts b/types/three/test/integration/loaders-gltfloader-plugin.ts index c3b725eac..c92788825 100644 --- a/types/three/test/integration/loaders-gltfloader-plugin.ts +++ b/types/three/test/integration/loaders-gltfloader-plugin.ts @@ -18,6 +18,8 @@ init().then(() => { }); class ExamplePlugin implements GLTFLoaderPlugin { + name: 'example-plugin'; + parser: GLTFParser; constructor(parser: GLTFParser) {