import { ReactNode } from "react" ; import { Big } from "big.js" ; import { ListExpressionValue , ListWidgetValue } from "mendix" ; import { dynamicValue } from "./DynamicActionValueBuilder" ; export function buildListExpression < T extends string | boolean | Date | Big > ( value ) { return { get : ( ) => dynamicValue < T > ( value ) } as Pick < ListExpressionValue , "get" > as ListExpressionValue < T > ; } export function buildWidgetValue ( value ) { return { get : ( ) => value } as Pick < ListWidgetValue , "get" > as ListWidgetValue ; }