Skip to content

Commit

Permalink
refactor: use StringLiteralLike over `StringLiteral | SubstitutionT…
Browse files Browse the repository at this point in the history
…emplateLiteral` (#128)
  • Loading branch information
RebeccaStevens authored Mar 2, 2023
1 parent 9b1e211 commit f334104
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nodes/typeGuards/compound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,13 @@ export function isNamespaceDeclaration(
}

/**
* A number or sting literal (including string literals declare with \`\` quotes).
* A number or string-like literal.
*
* @category Node Types
*/
export type NumericOrStringLikeLiteral =
| ts.NumericLiteral
| ts.StringLiteral
| ts.NoSubstitutionTemplateLiteral;
| ts.StringLiteralLike;

/**
* Test if a node is a {@link NumericOrStringLikeLiteral}.
Expand Down

0 comments on commit f334104

Please sign in to comment.