@stacksjs/stx
Version:
A performant UI Framework. Powered by Bun.
10 lines • 475 B
TypeScript
/**
* Safely evaluates an auth expression within the given context
* Similar to evaluateExpression but specialized for auth conditionals
* Uses the safe evaluator to prevent code injection
*
* @param {string} expression - The expression to evaluate
* @param {Record<string, any>} context - The context object containing variables
* @returns The evaluated result
*/
export declare function evaluateAuthExpression(expression: string, context: Record<string, any>): any;