Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

sum.md

26 lines366 Bytes

1---
2id: sum
3title: sum
4---
5​
6```ts
7function sum<T>(arg): AggregateReturnType<T>;
8```
9​
10Defined in: [packages/db/src/query/builder/functions.ts:651](https://github.com/TanStack/db/blob/main/packages/db/src/query/builder/functions.ts#L651)
11​
12## Type Parameters
13​
14### T
15​
16`T` *extends* `ExpressionLike`
17​
18## Parameters
19​
20### arg
21​
22`T`
23​
24## Returns
25​
26`AggregateReturnType`\<`T`\>