Function: getStaticBooleanValueFromExpressionOrIdentifier()
function getStaticBooleanValueFromExpressionOrIdentifier(
expression: Readonly<Expression>,
programNode: Readonly<TSESTree.Program>
): boolean | null | undefined;
Defined in: _internal/docusaurus-config-ast.ts:638
Resolve a static boolean value from a literal or identifier bound to a static boolean expression in the same program.
Parametersโ
expressionโ
Readonly<Expression>
programNodeโ
Readonly<TSESTree.Program>
Returnsโ
boolean | null | undefined