MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getAsFile

Method getAsFile

packages/react-aria/test/dnd/mocks.js:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 getAsFile() {
27 if (this.kind === 'file' && this._data instanceof FileSystemFileEntry) {
28 return this._data._file;
29 }
30 }
31
32 webkitGetAsEntry() {
33 if (this.kind === 'file') {

Callers 3

filesMethod · 0.80
readFromDataTransferFunction · 0.80
PromptTokenFieldFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected