ente/web/packages/media/file.ts

5 lines
153 B
TypeScript
Raw Normal View History

2024-04-27 12:19:47 +00:00
import type { Metadata } from "./types/file";
export const hasFileHash = (file: Metadata) =>
!!file.hash || (!!file.imageHash && !!file.videoHash);