MCPcopy Create free account
hub / github.com/GetStream/stream-js / isFileWebAPI

Function isFileWebAPI

src/utils.ts:53–55  ·  view source on GitHub ↗
(uri: unknown)

Source from the content-addressed store, hash-verified

51}
52
53function isFileWebAPI(uri: unknown): uri is File {
54 return typeof window !== 'undefined' && 'File' in window && uri instanceof File;
55}
56
57/*
58 * Validate that the feedId matches the spec user:1

Callers 1

addFileToFormDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected