From f329903364c1fd83cbc4d66aefd8af18b5f13bcd Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 17 May 2024 23:11:38 -0400 Subject: [PATCH] LoaderUtils: Deprecate decodeText(). (#953) --- types/three/src/loaders/LoaderUtils.d.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/types/three/src/loaders/LoaderUtils.d.ts b/types/three/src/loaders/LoaderUtils.d.ts index cddca2daf..2f00baeff 100644 --- a/types/three/src/loaders/LoaderUtils.d.ts +++ b/types/three/src/loaders/LoaderUtils.d.ts @@ -1,7 +1,10 @@ -export interface LoaderUtils { - decodeText(array: BufferSource): string; - extractUrlBase(url: string): string; - resolveURL(url: string, path: string): string; -} +export class LoaderUtils { + /** + * @deprecated decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead. + */ + static decodeText(array: BufferSource): string; + + static extractUrlBase(url: string): string; -export const LoaderUtils: LoaderUtils; + static resolveURL(url: string, path: string): string; +}