astro-ghostcms/.pnpm-store/v3/files/57/d36572b6f3784080a28fe3dbdc8...

12 lines
416 B
Plaintext

/**
* Extractor function for a FunctionExpression type value node.
* Statically, we can't execute the given function, so just return a function
* to indicate that the value is present.
*
* @param - value - AST Value object with type `FunctionExpression`
* @returns - The extracted value converted to correct type.
*/
export default function extractValueFromFunctionExpression(value) {
return () => value;
}