@aws-amplify/storage
Version:
Storage category of aws-amplify
20 lines (17 loc) • 754 B
JavaScript
import { resolveCtxArgs } from '@aws-amplify/core/internals/utils';
import { remove as remove$1 } from './internal/remove.mjs';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Overload signatures above are the public contract; the impl is intentionally untyped and shape is enforced by resolveCtxArgs.
function remove(...args) {
const [ctx, input] = resolveCtxArgs(args);
// Narrowing is required: removeInternal is overloaded and TypeScript cannot resolve the union argument without discriminating.
if ('key' in input) {
return remove$1(ctx, input);
}
else {
return remove$1(ctx, input);
}
}
export { remove };
//# sourceMappingURL=remove.mjs.map