MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / buildDataTransferItem

Function buildDataTransferItem

src/test/builders/fileFakes.ts:602–614  ·  view source on GitHub ↗
({
  kind = 'file',
  type = '',
  getAsFile = () => null,
  webkitGetAsEntry = () => null,
}: DataTransferItemBuilderOptions = {})

Source from the content-addressed store, hash-verified

600}
601
602export function buildDataTransferItem({
603 kind = 'file',
604 type = '',
605 getAsFile = () => null,
606 webkitGetAsEntry = () => null,
607}: DataTransferItemBuilderOptions = {}): DataTransferItem {
608 return new TestDataTransferItem({
609 kind,
610 type,
611 getAsFile,
612 webkitGetAsEntry,
613 });
614}
615
616export function buildDataTransfer({
617 types = ['Files'],

Callers 3

fileItemFunction · 0.90
stringItemFunction · 0.90
builders.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 2

fileItemFunction · 0.72
stringItemFunction · 0.72