Skip to content

Commit 30af215

Browse files
KyleAMathewsclaude
andcommitted
docs: regenerate API documentation properly
Run pnpm install && pnpm build (db package) && tsx scripts/generateDocs.ts to properly generate docs from built TypeScript declaration files. Previous commit incorrectly deleted docs because build step was skipped. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 256a0bc commit 30af215

File tree

299 files changed

+43479
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+43479
-0
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
---
2+
id: injectLiveQuery
3+
title: injectLiveQuery
4+
---
5+
6+
# Function: injectLiveQuery()
7+
8+
## Call Signature
9+
10+
```ts
11+
function injectLiveQuery<TContext, TParams>(options): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
12+
```
13+
14+
Defined in: [index.ts:51](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L51)
15+
16+
### Type Parameters
17+
18+
#### TContext
19+
20+
`TContext` *extends* `Context`
21+
22+
#### TParams
23+
24+
`TParams` *extends* `unknown`
25+
26+
### Parameters
27+
28+
#### options
29+
30+
##### params
31+
32+
() => `TParams`
33+
34+
##### query
35+
36+
(`args`) => `QueryBuilder`\<`TContext`\>
37+
38+
### Returns
39+
40+
[`InjectLiveQueryResult`](../../interfaces/InjectLiveQueryResult.md)\<\{ \[K in string \| number \| symbol\]: (TContext\["result"\] extends object ? any\[any\] : TContext\["hasJoins"\] extends true ? TContext\["schema"\] : TContext\["schema"\]\[TContext\["fromSourceName"\]\])\[K\] \}\>
41+
42+
## Call Signature
43+
44+
```ts
45+
function injectLiveQuery<TContext>(queryFn): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
46+
```
47+
48+
Defined in: [index.ts:61](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L61)
49+
50+
### Type Parameters
51+
52+
#### TContext
53+
54+
`TContext` *extends* `Context`
55+
56+
### Parameters
57+
58+
#### queryFn
59+
60+
(`q`) => `QueryBuilder`\<`TContext`\>
61+
62+
### Returns
63+
64+
[`InjectLiveQueryResult`](../../interfaces/InjectLiveQueryResult.md)\<\{ \[K in string \| number \| symbol\]: (TContext\["result"\] extends object ? any\[any\] : TContext\["hasJoins"\] extends true ? TContext\["schema"\] : TContext\["schema"\]\[TContext\["fromSourceName"\]\])\[K\] \}\>
65+
66+
## Call Signature
67+
68+
```ts
69+
function injectLiveQuery<TContext>(config): InjectLiveQueryResult<{ [K in string | number | symbol]: (TContext["result"] extends object ? any[any] : TContext["hasJoins"] extends true ? TContext["schema"] : TContext["schema"][TContext["fromSourceName"]])[K] }>;
70+
```
71+
72+
Defined in: [index.ts:64](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L64)
73+
74+
### Type Parameters
75+
76+
#### TContext
77+
78+
`TContext` *extends* `Context`
79+
80+
### Parameters
81+
82+
#### config
83+
84+
`LiveQueryCollectionConfig`\<`TContext`\>
85+
86+
### Returns
87+
88+
[`InjectLiveQueryResult`](../../interfaces/InjectLiveQueryResult.md)\<\{ \[K in string \| number \| symbol\]: (TContext\["result"\] extends object ? any\[any\] : TContext\["hasJoins"\] extends true ? TContext\["schema"\] : TContext\["schema"\]\[TContext\["fromSourceName"\]\])\[K\] \}\>
89+
90+
## Call Signature
91+
92+
```ts
93+
function injectLiveQuery<TResult, TKey, TUtils>(liveQueryCollection): InjectLiveQueryResult<TResult, TKey, TUtils>;
94+
```
95+
96+
Defined in: [index.ts:67](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L67)
97+
98+
### Type Parameters
99+
100+
#### TResult
101+
102+
`TResult` *extends* `object`
103+
104+
#### TKey
105+
106+
`TKey` *extends* `string` \| `number`
107+
108+
#### TUtils
109+
110+
`TUtils` *extends* `Record`\<`string`, `any`\>
111+
112+
### Parameters
113+
114+
#### liveQueryCollection
115+
116+
`Collection`\<`TResult`, `TKey`, `TUtils`\>
117+
118+
### Returns
119+
120+
[`InjectLiveQueryResult`](../../interfaces/InjectLiveQueryResult.md)\<`TResult`, `TKey`, `TUtils`\>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
id: "@tanstack/angular-db"
3+
title: "@tanstack/angular-db"
4+
---
5+
6+
# @tanstack/angular-db
7+
8+
## Interfaces
9+
10+
- [InjectLiveQueryResult](../interfaces/InjectLiveQueryResult.md)
11+
12+
## Functions
13+
14+
- [injectLiveQuery](../functions/injectLiveQuery.md)
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
---
2+
id: InjectLiveQueryResult
3+
title: InjectLiveQueryResult
4+
---
5+
6+
# Interface: InjectLiveQueryResult\<TResult, TKey, TUtils\>
7+
8+
Defined in: [index.ts:26](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L26)
9+
10+
The result of calling `injectLiveQuery`.
11+
Contains reactive signals for the query state and data.
12+
13+
## Type Parameters
14+
15+
### TResult
16+
17+
`TResult` *extends* `object` = `any`
18+
19+
### TKey
20+
21+
`TKey` *extends* `string` \| `number` = `string` \| `number`
22+
23+
### TUtils
24+
25+
`TUtils` *extends* `Record`\<`string`, `any`\> = \{
26+
\}
27+
28+
## Properties
29+
30+
### collection
31+
32+
```ts
33+
collection: Signal<Collection<TResult, TKey, TUtils, StandardSchemaV1<unknown, unknown>, TResult>>;
34+
```
35+
36+
Defined in: [index.ts:36](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L36)
37+
38+
A signal containing the underlying collection instance
39+
40+
***
41+
42+
### data
43+
44+
```ts
45+
data: Signal<TResult[]>;
46+
```
47+
48+
Defined in: [index.ts:34](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L34)
49+
50+
A signal containing the results as an array
51+
52+
***
53+
54+
### isCleanedUp
55+
56+
```ts
57+
isCleanedUp: Signal<boolean>;
58+
```
59+
60+
Defined in: [index.ts:48](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L48)
61+
62+
A signal indicating whether the collection has been cleaned up
63+
64+
***
65+
66+
### isError
67+
68+
```ts
69+
isError: Signal<boolean>;
70+
```
71+
72+
Defined in: [index.ts:46](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L46)
73+
74+
A signal indicating whether the collection has an error
75+
76+
***
77+
78+
### isIdle
79+
80+
```ts
81+
isIdle: Signal<boolean>;
82+
```
83+
84+
Defined in: [index.ts:44](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L44)
85+
86+
A signal indicating whether the collection is idle
87+
88+
***
89+
90+
### isLoading
91+
92+
```ts
93+
isLoading: Signal<boolean>;
94+
```
95+
96+
Defined in: [index.ts:40](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L40)
97+
98+
A signal indicating whether the collection is currently loading
99+
100+
***
101+
102+
### isReady
103+
104+
```ts
105+
isReady: Signal<boolean>;
106+
```
107+
108+
Defined in: [index.ts:42](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L42)
109+
110+
A signal indicating whether the collection is ready
111+
112+
***
113+
114+
### state
115+
116+
```ts
117+
state: Signal<Map<TKey, TResult>>;
118+
```
119+
120+
Defined in: [index.ts:32](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L32)
121+
122+
A signal containing the complete state map of results keyed by their ID
123+
124+
***
125+
126+
### status
127+
128+
```ts
129+
status: Signal<CollectionStatus>;
130+
```
131+
132+
Defined in: [index.ts:38](https://github.com/TanStack/db/blob/main/packages/angular-db/src/index.ts#L38)
133+
134+
A signal containing the current status of the collection

0 commit comments

Comments
 (0)