export type BoundValue = { type: "bound"; expression: string }; export function isNotBoundValue(value: T | BoundValue): value is T { // eslint-disable-next-line @typescript-eslint/consistent-type-assertions const boundValue = value as BoundValue; return boundValue?.type !== "bound"; } export function isBoundValue(value: T | BoundValue): value is BoundValue { return !isNotBoundValue(value); }