MCPcopy Create free account
hub / github.com/denoland/std / isFileInfo

Function isFileInfo

http/etag.ts:54–58  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

52}
53
54function isFileInfo(value: unknown): value is FileInfo {
55 return Boolean(
56 value && typeof value === "object" && "mtime" in value && "size" in value,
57 );
58}
59
60async function calcEntity(
61 entity: string | ReturnType<TextEncoder["encode"]>,

Callers 1

eTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected