Skip to content

Commit

Permalink
Fixed isBackend
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Dec 10, 2024
1 parent 7cee453 commit 3127530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export type FilesystemOf<T extends Backend> = T extends Backend<infer FS> ? FS :

/** @internal */
export function isBackend(arg: unknown): arg is Backend {
return arg != null && typeof arg == 'object' && 'isAvailable' in arg && typeof arg.isAvailable == 'function' && 'create' in arg && typeof arg.create == 'function';
return arg != null && typeof arg == 'object' && 'create' in arg && typeof arg.create == 'function';
}

/**
Expand Down

0 comments on commit 3127530

Please sign in to comment.