Skip to content

Commit

Permalink
LoaderUtils: Deprecate decodeText(). (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored May 18, 2024
1 parent 5b12bea commit f329903
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions types/three/src/loaders/LoaderUtils.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit f329903

Please sign in to comment.