MCPcopy Create free account
hub / github.com/Effect-TS/effect / typeflagOf

Function typeflagOf

packages/effect/src/encoding/Tar.ts:616–616  ·  view source on GitHub ↗
(header: Header)

Source from the content-addressed store, hash-verified

614}
615
616const typeflagOf = (header: Header): string => header.type === "Other" ? header.typeflag : typeflags[header.type]
617
618// Entries of these types never carry body bytes, whatever their size field says
619const isHeaderOnly = (type: EntryType): boolean => type !== "File" && type !== "Other"

Callers 1

encodeHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected