Browse Source

chore: using string instead of String as type

alvarosabu 2 years ago
parent
commit
6d52b57381
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/composables/useTexture/index.ts

+ 1 - 1
src/composables/useTexture/index.ts

@@ -73,7 +73,7 @@ export async function useTexture(
 
 
   if (isArray(paths)) {
   if (isArray(paths)) {
     const textures = await Promise.all((paths as Array<string>).map(path => loadTexture(path)))
     const textures = await Promise.all((paths as Array<string>).map(path => loadTexture(path)))
-    if ((paths as Array<String>).length > 1) {
+    if ((paths as Array<string>).length > 1) {
       return textures
       return textures
     } else {
     } else {
       return textures[0]
       return textures[0]