Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
12 lines
559 B
Plaintext
12 lines
559 B
Plaintext
import type { TSESTree } from '@typescript-eslint/utils';
|
|
/**
|
|
* Returns the result of the string conversion applied to the evaluated value of the given expression node,
|
|
* if it can be determined statically.
|
|
*
|
|
* This function returns a `string` value for all `Literal` nodes and simple `TemplateLiteral` nodes only.
|
|
* In all other cases, this function returns `null`.
|
|
* @param node Expression node.
|
|
* @returns String value if it can be determined. Otherwise, `null`.
|
|
*/
|
|
export declare function getStaticStringValue(node: TSESTree.Node): string | null;
|