Skip to content

Commit

Permalink
chore: using string instead of String as type
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed May 3, 2023
1 parent 4ae072d commit 6d52b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/useTexture/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6d52b57

Please sign in to comment.