Skip to main content

Function: getObjectPropertyValueExpression()

function getObjectPropertyValueExpression(
property: Readonly<Property>
): Readonly<Expression>;

Defined in: _internal/docusaurus-config-ast.ts:132

Resolve an object-property value to an expression.

Parametersโ€‹

propertyโ€‹

Readonly<Property>

Returnsโ€‹

Readonly<Expression>

Throwsโ€‹

TypeError when the property value is a pattern node rather than an expression.