Tiny fix.

This commit is contained in:
marko1616
2024-08-21 14:33:11 +08:00
parent 89dd0773ee
commit f630b53e0a
3 changed files with 8 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ export class ElectronPlatformService extends PlatformService {
})
}
async getAllFiles (dir: string): string[] {
async getAllFiles (dir: string): Promise<string[]> {
let files: string[] = []
const items = await fs.readdir(dir, { withFileTypes: true })
for (const item of items) {