Skip to content

basalt / files/src / FilePatch

Interface: FilePatch ​

Defined in: files/src/store.ts:53

The fields of a file record that can change after it is written.

Spelled out rather than derived with Partial<Pick<…>> so it can say the one thing that matters to a durable store: a key present with undefined clears the column, a key that is absent leaves it alone. That is how a caller drops a stale scan result, and Partial of an optional field cannot express it under exactOptionalPropertyTypes.

Properties ​

metadata? ​

> optional metadata?: FileMetadata

Defined in: files/src/store.ts:55


scannedAt? ​

> optional scannedAt?: number

Defined in: files/src/store.ts:54

Released under the MIT License.