functions.d.ts 578 B

1234567891011121314
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import * as ts from 'typescript';
  9. /**
  10. * Unwraps a given expression TypeScript node. Expressions can be wrapped within multiple
  11. * parentheses. e.g. "(((({exp}))))()". The function should return the TypeScript node
  12. * referring to the inner expression. e.g "exp".
  13. */
  14. export declare function unwrapExpression(node: ts.Expression | ts.ParenthesizedExpression): ts.Expression;