From f334104bd0c0efb59b51287c939351cf592d61e7 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Fri, 3 Mar 2023 11:14:58 +1300 Subject: [PATCH] refactor: use `StringLiteralLike` over `StringLiteral | SubstitutionTemplateLiteral` (#128) --- src/nodes/typeGuards/compound.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nodes/typeGuards/compound.ts b/src/nodes/typeGuards/compound.ts index 595ead85..ff0b19e6 100644 --- a/src/nodes/typeGuards/compound.ts +++ b/src/nodes/typeGuards/compound.ts @@ -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}.