@itwin/object-storage-core
Version:
Core generic object storage interfaces
19 lines • 822 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUrlTransferInput = isUrlTransferInput;
exports.inputToStorageType = inputToStorageType;
function isUrlTransferInput(input) {
return (input.url != null &&
input.storageType != null);
}
function inputToStorageType(input) {
if (isUrlTransferInput(input)) {
return input.storageType;
}
return input.transferConfig.storageType;
}
//# sourceMappingURL=Utils.js.map
;