Skip to content

Commit a5e99fe

Browse files
committed
fix: fix TypeScript 2322 error
1 parent 5a32a4e commit a5e99fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/volume.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ export function toUnixTimestamp(time) {
485485
*/
486486
function getArgAndCb<TArg, TRes>(arg: TArg | TCallback<TRes>, callback?: TCallback<TRes>, def?: TArg): [TArg, TCallback<TRes>] {
487487
return typeof arg === 'function'
488-
? [def, arg]
488+
? [def, arg as TCallback<TRes>]
489489
: [arg, callback];
490490
}
491491

0 commit comments

Comments
 (0)