UNPKG

@sentry/utils

Version:
12 lines 671 B
/** * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values, * descriptors, and functions, for situations in which at least one part of the expression is async. * * 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 value of the expression */ export declare function _asyncOptionalChain(ops: unknown[]): Promise<unknown>; //# sourceMappingURL=_asyncOptionalChain.d.ts.map