fix: Usage of the `any` type

Resolves Deepsource JS-0323
This commit is contained in:
tycrek 2022-10-13 22:31:14 -06:00
parent f1f8468651
commit b06eceda26
No known key found for this signature in database
GPG Key ID: 25D74F3943625263
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export const removeGPS = (file: string): Promise<boolean> => {
fs.read(fd, Buffer.alloc(size), 0, size, offset)
.then(({ buffer }) => Promise.resolve(buffer)),
// Write function
(val: string, offset: number, enc: any): Promise<void> =>
(val: string, offset: number, enc: BufferEncoding): Promise<void> =>
fs.write(fd, Buffer.alloc(val.length, val, enc), 0, val.length, offset)
.then(() => Promise.resolve())))
.then(resolve)