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

Method getAsString

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

Source from the content-addressed store, hash-verified

18 }
19
20 getAsString(callback) {
21 if (this.kind === 'string') {
22 callback(this._data);
23 }
24 }
25
26 getAsFile() {
27 if (this.kind === 'file' && this._data instanceof FileSystemFileEntry) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected