UNPKG

@itwin/object-storage-core

Version:
19 lines 822 B
"use strict"; /*--------------------------------------------------------------------------------------------- * 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