MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Method constructor

packages/core/xhr/index.ts:474–478  ·  view source on GitHub ↗
(chunks: Array<BufferSource | DataView | Blob | string>, name: string, opts: { type?: string; lastModified?: number } = {})

Source from the content-addressed store, hash-verified

472 }
473
474 constructor(chunks: Array<BufferSource | DataView | Blob | string>, name: string, opts: { type?: string; lastModified?: number } = {}) {
475 super(chunks, opts);
476 this._name = name.replace(/\//g, ':');
477 this._lastModified = opts.lastModified ? new Date(opts.lastModified).valueOf() : Date.now();
478 }
479
480 public toString() {
481 return '[object File]';

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected