@aws-amplify/storage
Version:
Storage category of aws-amplify
14 lines (11 loc) • 356 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import {
StorageOperationInput,
StorageOperationInputWithPath,
} from '../../../types/inputs';
export const isInputWithPath = (
input: StorageOperationInput,
): input is StorageOperationInputWithPath => {
return input.path !== undefined;
};