UNPKG

874 BTypeScriptView Raw
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.io/license
7 */
8import * as ts from 'typescript';
9export declare function collectDeepNodes<T extends ts.Node>(node: ts.Node, kind: ts.SyntaxKind): T[];
10export declare function addPureComment<T extends ts.Node>(node: T): T;
11export declare function hasPureComment(node: ts.Node): boolean;
12export declare function isHelperName(name: string): boolean;
13/**
14 * In FESM's when not using `importHelpers` there might be multiple in the same file.
15 @example
16 ```
17 var __decorate$1 = '';
18 var __decorate$2 = '';
19 ```
20 * @returns Helper name without the '$' and number suffix or `undefined` if it's not a helper.
21 */
22export declare function getCleanHelperName(name: string): string | undefined;