UNPKG

aws-sdk-js-codemod

Version:

Collection of codemod scripts that help update AWS SDK for JavaScript APIs

15 lines (14 loc) 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getClientApiCallExpression = void 0; const getClientApiCallExpression = (clientId, apiName // @ts-expect-error Property 'arguments' is missing in type ) => ({ type: "CallExpression", callee: { type: "MemberExpression", object: clientId, property: { type: "Identifier", name: apiName }, }, }); exports.getClientApiCallExpression = getClientApiCallExpression;