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

sum.md

28 lines385 Bytes

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