Explorar o código

chore: using string instead of String as type

alvarosabu %!s(int64=2) %!d(string=hai) anos
pai
achega
6d52b57381
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)) {
     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
     } else {
       return textures[0]