File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ interface TemplateLiteral<Value extends string = string>
41
41
* If a `value` is provided & the `node` is a `TemplateLiteral`,
42
42
* the `value` will be compared to that of the `TemplateLiteral`.
43
43
*/
44
- const isTemplateLiteral = < V extends string > (
44
+ const isSimpleTemplateLiteral = < V extends string > (
45
45
node : TSESTree . Node ,
46
46
value ?: V
47
47
) : node is TemplateLiteral < V > =>
@@ -60,7 +60,7 @@ export const isStringNode = <V extends string>(
60
60
node : TSESTree . Node ,
61
61
specifics ?: V
62
62
) : node is StringNode < V > =>
63
- isStringLiteral ( node , specifics ) || isTemplateLiteral ( node , specifics ) ;
63
+ isStringLiteral ( node , specifics ) || isSimpleTemplateLiteral ( node , specifics ) ;
64
64
65
65
/**
66
66
* Gets the value of the given `StringNode`.
@@ -69,7 +69,7 @@ export const isStringNode = <V extends string>(
69
69
* otherwise, `value` is returned instead.
70
70
*/
71
71
export const getStringValue = < S extends string > ( node : StringNode < S > ) : S =>
72
- isTemplateLiteral ( node ) ? node . quasis [ 0 ] . value . raw : node . value ;
72
+ isSimpleTemplateLiteral ( node ) ? node . quasis [ 0 ] . value . raw : node . value ;
73
73
74
74
/**
75
75
* An `Identifier` with a known `name` value
You can’t perform that action at this time.
0 commit comments