MCPcopy Create free account
hub / github.com/react-dropzone/react-dropzone / createFile

Function createFile

src/utils/index.spec.js:617–625  ·  view source on GitHub ↗
(name, size, type)

Source from the content-addressed store, hash-verified

615});
616
617function createFile(name, size, type) {
618 const file = new File([], name, { type });
619 Object.defineProperty(file, "size", {
620 get() {
621 return size;
622 },
623 });
624 return file;
625}

Callers 1

index.spec.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…