MCPcopy Create free account
hub / github.com/TanStack/db / subtract

Function subtract

packages/db/src/query/builder/functions.ts:611–619  ·  view source on GitHub ↗
(
  left: T1,
  right: T2,
)

Source from the content-addressed store, hash-verified

609}
610
611export function subtract<T1 extends ExpressionLike, T2 extends ExpressionLike>(
612 left: T1,
613 right: T2,
614): BinaryNumericReturnType {
615 return new Func(`subtract`, [
616 toExpression(left),
617 toExpression(right),
618 ]) as BinaryNumericReturnType
619}
620
621export function multiply<T1 extends ExpressionLike, T2 extends ExpressionLike>(
622 left: T1,

Callers 1

functions.test.tsFile · 0.85

Calls 1

toExpressionFunction · 0.85

Tested by

no test coverage detected