Skip to main content

Function: getStaticStringValue()

function getStaticStringValue(
node:
| Readonly<Expression>
| Readonly<PrivateIdentifier>
| null
): string | undefined;

Defined in: _internal/ast.ts:7

Convert a static string-ish AST node into its runtime string value.

Parametersโ€‹

nodeโ€‹

| Readonly<Expression> | Readonly<PrivateIdentifier> | null

Returnsโ€‹

string | undefined