# ExpressionFunction

Canonical page: https://www.adaptabletools.com/docs/reference/expressionfunction

The definition shape flowing through `QueryLanguageService` pools and all
Adaptable UI consumers: aql&#39;s lean evaluation definition **plus** the
Adaptable enhancement.

The handler context is `AdaptableInternalExpressionContext` — the host
evaluation context Adaptable actually passes. Both system pack handlers
(written against aql&#39;s `HostExpressionContext`) and custom handlers
(written against the public `AdaptableExpressionContext`) are assignable
here; see the bivariance note on aql&#39;s `ExpressionFunction.handler`.

```ts title="TypeScript"
export type AdaptableExpressionFunction = AqlExpressionFunction<AdaptableInternalExpressionContext> & AdaptableExpressionFunctionEnhancement;
```
