UNPKG

aws-sdk-js-codemod

Version:

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

15 lines (14 loc) 550 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getClientWaiterCallExpression = void 0; const getClientWaiterCallExpression = (clientId, waiterState) => ({ type: "CallExpression", callee: { type: "MemberExpression", object: clientId, property: { type: "Identifier", name: "waitFor" }, }, // @ts-expect-error Type 'string' is not assignable to type 'RegExp' arguments: [{ value: waiterState }], }); exports.getClientWaiterCallExpression = getClientWaiterCallExpression;