TS2339: Property 'loggingEnabled' does not exist on type 'ISceneLoaderPlugin | ISceneLoaderPluginAsync'.
Property 'loggingEnabled' does not exist on type 'ISceneLoaderPlugin'.
Code like this will not require as for type casting in the developers code, because TypeScript after condition if (loader.name === 'gltf') will now that is a ISceneLoaderPluginGLTFFileLoader and it contains loggingEnabled field.