-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
TS: fix CompressedTextureLoader.d.ts #20373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
It seems you can now delete the three.js/examples/jsm/loaders/KTX2Loader.d.ts Lines 15 to 20 in 538533d
|
|
I am confused, I see the function is return three.js/examples/jsm/loaders/KTX2Loader.js Lines 124 to 156 in 538533d
|
|
Why is this confusing for you^^? |
Excuse me, This PR changed is right now? and you want me to commit this change like it. diff --git a/examples/jsm/loaders/KTX2Loader.d.ts b/examples/jsm/loaders/KTX2Loader.d.ts
index 1f1d25867..4a0c84ba7 100644
--- a/examples/jsm/loaders/KTX2Loader.d.ts
+++ b/examples/jsm/loaders/KTX2Loader.d.ts
@@ -17,7 +17,7 @@ export class KTX2Loader extends CompressedTextureLoader {
onLoad: ( texture: CompressedTexture ) => void,
onProgress?: ( event: ProgressEvent ) => void,
onError?: ( event: ErrorEvent ) => void
- ): CompressedTexture;
+ ): void;
parse(
buffer: ArrayBuffer, |
|
No, you can delete the entire method definition. Because it's identical to its upper class. |
Thanks for your reply. |
|
Thanks! |
related: #20370