MCPcopy Create free account
hub / github.com/hashintel/hash / isFileEntity

Function isFileEntity

apps/hash-api/src/storage/index.ts:88–90  ·  view source on GitHub ↗
(entity: Entity)

Source from the content-addressed store, hash-verified

86};
87
88const isFileEntity = (entity: Entity): entity is Entity<FileEntity> =>
89 systemPropertyTypes.fileStorageKey.propertyTypeBaseUrl in entity.properties &&
90 blockProtocolPropertyTypes.fileUrl.propertyTypeBaseUrl in entity.properties;
91
92const getFileEntity = async (
93 context: ImpureGraphContext,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected