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

Method constructor

packages/react-aria/test/dnd/mocks.js:14–18  ·  view source on GitHub ↗
(type, data, kind = 'string')

Source from the content-addressed store, hash-verified

12
13export class DataTransferItem {
14 constructor(type, data, kind = 'string') {
15 this.kind = kind;
16 this.type = type;
17 this._data = data;
18 }
19
20 getAsString(callback) {
21 if (this.kind === 'string') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected