@sitecore/sc-contenthub-webclient-sdk
Version:
Sitecore Content Hub WebClient SDK.
13 lines • 377 B
JavaScript
import Guard from "../../guard";
export class ArrayBufferUploadSource {
constructor(buffer, name) {
this.buffer = buffer;
Guard.notNull(buffer);
Guard.stringNotNullOrEmpty(name);
this.name = name;
}
getReadableSourceAsync() {
return Promise.resolve(this.buffer);
}
}
//# sourceMappingURL=array-buffer-upload-source.js.map