MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getEntryFile

Function getEntryFile

packages/react-aria/src/dnd/utils.ts:358–360  ·  view source on GitHub ↗
(entry: FileSystemFileEntry)

Source from the content-addressed store, hash-verified

356}
357
358function getEntryFile(entry: FileSystemFileEntry): Promise<File> {
359 return new Promise((resolve, reject) => entry.file(resolve, reject));
360}
361
362/** Returns whether a drop item contains text data. */
363export function isTextDropItem(dropItem: DropItem): dropItem is TextDropItem {

Callers 1

getEntriesFunction · 0.85

Calls 1

fileMethod · 0.80

Tested by

no test coverage detected