Skip to content

TypeScript API / laikacms/storage/web-fs / WebFsFileSnapshot

Interface: WebFsFileSnapshot ​

The read-side view of a file: FileSystemFileHandle.getFile()'s File, reduced to what is consumed.

Properties ​

lastModified ​

ts
readonly lastModified: number;

Milliseconds since epoch of the last modification — the only timestamp the File System API keeps.

Methods ​

text() ​

ts
text(): Promise<string>;

Returns ​

Promise<string>

Released under the MIT License.