UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

19 lines (18 loc) 964 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import * as ts from 'typescript'; /** Finds all start indices of the given search string in the input string. */ export declare function findAllSubstringIndices(input: string, search: string): number[]; /** * Checks whether the given node is either a string literal or a no-substitution template * literal. Note that we cannot use `ts.isStringLiteralLike()` because if developers update * an outdated project, their TypeScript version is not automatically being updated * and therefore could throw because the function is not available yet. * https://github.com/Microsoft/TypeScript/commit/8518343dc8762475a5e92c9f80b5c5725bd81796 */ export declare function isStringLiteralLike(node: ts.Node): node is ts.StringLiteral | ts.NoSubstitutionTemplateLiteral;