UNPKG

@sentry/utils

Version:
14 lines 889 B
/** * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values, * descriptors, and functions, in cases where the value of the expression is to be deleted. * * Adapted from Sucrase (https://github.com/alangpierce/sucrase) See * https://github.com/alangpierce/sucrase/blob/265887868966917f3b924ce38dfad01fbab1329f/src/transformers/OptionalChainingNullishTransformer.ts#L15 * * @param ops Array result of expression conversion * @returns The return value of the `delete` operator: `true`, unless the deletion target is an own, non-configurable * property (one which can't be deleted or turned into an accessor, and whose enumerability can't be changed), in which * case `false`. */ export declare function _asyncOptionalChainDelete(ops: unknown[]): Promise<boolean>; //# sourceMappingURL=_asyncOptionalChainDelete.d.ts.map