@aws-amplify/storage
Version:
Storage category of aws-amplify
1 lines • 1.18 kB
Source Map (JSON)
{"version":3,"file":"remove.mjs","sources":["../../../../../src/providers/s3/apis/remove.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { resolveCtxArgs } from '@aws-amplify/core/internals/utils';\nimport { remove as removeInternal } from './internal/remove';\n// Overload signatures above are the public contract; the impl is intentionally untyped and shape is enforced by resolveCtxArgs.\nexport function remove(...args) {\n const [ctx, input] = resolveCtxArgs(args);\n // Narrowing is required: removeInternal is overloaded and TypeScript cannot resolve the union argument without discriminating.\n if ('key' in input) {\n return removeInternal(ctx, input);\n }\n else {\n return removeInternal(ctx, input);\n }\n}\n"],"names":["removeInternal"],"mappings":";;;AAAA;AACA;AAGA;AACO,SAAS,MAAM,CAAC,GAAG,IAAI,EAAE;AAChC,IAAI,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC;AAC7C;AACA,IAAI,IAAI,KAAK,IAAI,KAAK,EAAE;AACxB,QAAQ,OAAOA,QAAc,CAAC,GAAG,EAAE,KAAK,CAAC;AACzC,IAAI;AACJ,SAAS;AACT,QAAQ,OAAOA,QAAc,CAAC,GAAG,EAAE,KAAK,CAAC;AACzC,IAAI;AACJ;;;;"}