UNPKG

870 BTypeScriptView Raw
1/**
2 * Polyfill for the optional chain operator, `?.`, given previous conversion of the expression into an array of values,
3 * descriptors, and functions, in cases where the value of the expression is to be deleted.
4 *
5 * Adapted from Sucrase (https://github.com/alangpierce/sucrase) See
6 * https://github.com/alangpierce/sucrase/blob/265887868966917f3b924ce38dfad01fbab1329f/src/transformers/OptionalChainingNullishTransformer.ts#L15
7 *
8 * @param ops Array result of expression conversion
9 * @returns The return value of the `delete` operator: `true`, unless the deletion target is an own, non-configurable
10 * property (one which can't be deleted or turned into an accessor, and whose enumerability can't be changed), in which
11 * case `false`.
12 */
13export declare function _optionalChainDelete(ops: unknown[]): boolean;
14//# sourceMappingURL=_optionalChainDelete.d.ts.map
\No newline at end of file