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

Method files

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

Source from the content-addressed store, hash-verified

119 }
120
121 get files() {
122 return this.items._items.filter(item => item.kind === 'file').map(item => item.getAsFile());
123 }
124
125 getData(type) {
126 return this.items._items.find(item => item.kind === 'string' && item.type === type)?._data;

Callers

nothing calls this directly

Calls 2

getAsFileMethod · 0.80
filterMethod · 0.65

Tested by

no test coverage detected