Skip to content

Commit de062c3

Browse files
docs: Update typedoc (#865)
1 parent 2bebfd5 commit de062c3

40 files changed

+488
-466
lines changed

docs/framework/angular/reference/injectform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function injectForm<TFormData, TFormValidator>(opts?): FormApi<TFormData, TFormValidator>
55
```
66

7-
## Type parameters
7+
## Type Parameters
88

99
**TFormData**
1010

@@ -18,6 +18,6 @@ function injectForm<TFormData, TFormValidator>(opts?): FormApi<TFormData, TFormV
1818

1919
`FormApi`\<`TFormData`, `TFormValidator`\>
2020

21-
## Source
21+
## Defined in
2222

23-
[inject-form.ts:4](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/inject-form.ts#L4)
23+
[inject-form.ts:4](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/inject-form.ts#L4)

docs/framework/angular/reference/injectstore.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
function injectStore<TFormData, TFormValidator, TSelected>(form, selector?): Signal<TSelected>
55
```
66

7-
## Type parameters
7+
## Type Parameters
88

99
**TFormData**
1010

@@ -22,6 +22,6 @@ function injectStore<TFormData, TFormValidator, TSelected>(form, selector?): Sig
2222

2323
`Signal`\<`TSelected`\>
2424

25-
## Source
25+
## Defined in
2626

27-
[inject-store.ts:4](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/inject-store.ts#L4)
27+
[inject-store.ts:4](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/inject-store.ts#L4)

docs/framework/angular/reference/tanstackfield.md

Lines changed: 55 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Class: TanStackField\<TParentData, TName, TFieldValidator, TFormValidator, TData\>
22

3-
## Type parameters
3+
## Type Parameters
44

55
**TParentData**
66

@@ -39,9 +39,9 @@ new TanStackField<TParentData, TName, TFieldValidator, TFormValidator, TData>():
3939
api: FieldApi<TParentData, TName, TFieldValidator, TFormValidator, TData>;
4040
```
4141

42-
#### Source
42+
#### Defined in
4343

44-
[tanstack-field.directive.ts:61](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L61)
44+
[tanstack-field.directive.ts:61](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L61)
4545

4646
***
4747

@@ -51,13 +51,15 @@ api: FieldApi<TParentData, TName, TFieldValidator, TFormValidator, TData>;
5151
optional asyncAlways: boolean;
5252
```
5353

54+
If `true`, always run async validation, even if there are errors emitted during synchronous validation.
55+
5456
#### Implementation of
5557

5658
`FieldOptions.asyncAlways`
5759

58-
#### Source
60+
#### Defined in
5961

60-
[tanstack-field.directive.ts:50](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L50)
62+
[tanstack-field.directive.ts:50](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L50)
6163

6264
***
6365

@@ -67,13 +69,15 @@ optional asyncAlways: boolean;
6769
optional asyncDebounceMs: number;
6870
```
6971

72+
The default time to debounce async validation if there is not a more specific debounce time passed.
73+
7074
#### Implementation of
7175

7276
`FieldOptions.asyncDebounceMs`
7377

74-
#### Source
78+
#### Defined in
7579

76-
[tanstack-field.directive.ts:49](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L49)
80+
[tanstack-field.directive.ts:49](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L49)
7781

7882
***
7983

@@ -83,13 +87,15 @@ optional asyncDebounceMs: number;
8387
optional defaultMeta: Partial<FieldMeta>;
8488
```
8589

90+
An optional object with default metadata for the field.
91+
8692
#### Implementation of
8793

8894
`FieldOptions.defaultMeta`
8995

90-
#### Source
96+
#### Defined in
9197

92-
[tanstack-field.directive.ts:59](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L59)
98+
[tanstack-field.directive.ts:59](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L59)
9399

94100
***
95101

@@ -99,13 +105,15 @@ optional defaultMeta: Partial<FieldMeta>;
99105
optional defaultValue: NoInfer<TData>;
100106
```
101107

108+
An optional default value for the field.
109+
102110
#### Implementation of
103111

104112
`FieldOptions.defaultValue`
105113

106-
#### Source
114+
#### Defined in
107115

108-
[tanstack-field.directive.ts:48](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L48)
116+
[tanstack-field.directive.ts:48](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L48)
109117

110118
***
111119

@@ -115,13 +123,15 @@ optional defaultValue: NoInfer<TData>;
115123
name: TName;
116124
```
117125

126+
The field name. The type will be `DeepKeys<TParentData>` to ensure your name is a deep key of the parent dataset.
127+
118128
#### Implementation of
119129

120130
`FieldOptions.name`
121131

122-
#### Source
132+
#### Defined in
123133

124-
[tanstack-field.directive.ts:44](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L44)
134+
[tanstack-field.directive.ts:44](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L44)
125135

126136
***
127137

@@ -131,9 +141,9 @@ name: TName;
131141
tanstackField: FormApi<TParentData, TFormValidator>;
132142
```
133143

134-
#### Source
144+
#### Defined in
135145

136-
[tanstack-field.directive.ts:52](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L52)
146+
[tanstack-field.directive.ts:52](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L52)
137147

138148
***
139149

@@ -147,9 +157,9 @@ optional unmount: () => void;
147157

148158
`void`
149159

150-
#### Source
160+
#### Defined in
151161

152-
[tanstack-field.directive.ts:76](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L76)
162+
[tanstack-field.directive.ts:76](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L76)
153163

154164
***
155165

@@ -159,13 +169,15 @@ optional unmount: () => void;
159169
optional validatorAdapter: TFieldValidator;
160170
```
161171

172+
A validator provided by an extension, like `yupValidator` from `@tanstack/yup-form-adapter`
173+
162174
#### Implementation of
163175

164176
`FieldOptions.validatorAdapter`
165177

166-
#### Source
178+
#### Defined in
167179

168-
[tanstack-field.directive.ts:51](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L51)
180+
[tanstack-field.directive.ts:51](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L51)
169181

170182
***
171183

@@ -175,13 +187,15 @@ optional validatorAdapter: TFieldValidator;
175187
optional validators: NoInfer<FieldValidators<TParentData, TName, TFieldValidator, TFormValidator, TData>>;
176188
```
177189

190+
A list of validators to pass to the field
191+
178192
#### Implementation of
179193

180194
`FieldOptions.validators`
181195

182-
#### Source
196+
#### Defined in
183197

184-
[tanstack-field.directive.ts:56](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L56)
198+
[tanstack-field.directive.ts:56](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L56)
185199

186200
## Methods
187201

@@ -191,6 +205,11 @@ optional validators: NoInfer<FieldValidators<TParentData, TName, TFieldValidator
191205
ngOnChanges(): void
192206
```
193207

208+
A callback method that is invoked immediately after the
209+
default change detector has checked data-bound properties
210+
if at least one has changed, and before the view and content
211+
children are checked.
212+
194213
#### Returns
195214

196215
`void`
@@ -199,9 +218,9 @@ ngOnChanges(): void
199218

200219
`OnChanges.ngOnChanges`
201220

202-
#### Source
221+
#### Defined in
203222

204-
[tanstack-field.directive.ts:88](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L88)
223+
[tanstack-field.directive.ts:88](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L88)
205224

206225
***
207226

@@ -211,6 +230,9 @@ ngOnChanges(): void
211230
ngOnDestroy(): void
212231
```
213232

233+
A callback method that performs custom clean-up, invoked immediately
234+
before a directive, pipe, or service instance is destroyed.
235+
214236
#### Returns
215237

216238
`void`
@@ -219,9 +241,9 @@ ngOnDestroy(): void
219241

220242
`OnDestroy.ngOnDestroy`
221243

222-
#### Source
244+
#### Defined in
223245

224-
[tanstack-field.directive.ts:84](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L84)
246+
[tanstack-field.directive.ts:84](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L84)
225247

226248
***
227249

@@ -231,6 +253,12 @@ ngOnDestroy(): void
231253
ngOnInit(): void
232254
```
233255

256+
A callback method that is invoked immediately after the
257+
default change detector has checked the directive's
258+
data-bound properties for the first time,
259+
and before any of the view or content children have been checked.
260+
It is invoked only once when the directive is instantiated.
261+
234262
#### Returns
235263

236264
`void`
@@ -239,6 +267,6 @@ ngOnInit(): void
239267

240268
`OnInit.ngOnInit`
241269

242-
#### Source
270+
#### Defined in
243271

244-
[tanstack-field.directive.ts:78](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/angular-form/src/tanstack-field.directive.ts#L78)
272+
[tanstack-field.directive.ts:78](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/angular-form/src/tanstack-field.directive.ts#L78)

docs/framework/lit/reference/tanstackformcontroller.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Class: TanStackFormController\<TParentData, TFormValidator\>
22

3-
## Type parameters
3+
## Type Parameters
44

55
**TParentData**
66

@@ -28,9 +28,9 @@ new TanStackFormController<TParentData, TFormValidator>(host, config?): TanStack
2828
2929
[`TanStackFormController`](tanstackformcontroller.md)\<`TParentData`, `TFormValidator`\>
3030
31-
#### Source
31+
#### Defined in
3232
33-
[tanstack-form-controller.ts:93](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/lit-form/src/tanstack-form-controller.ts#L93)
33+
[tanstack-form-controller.ts:93](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/lit-form/src/tanstack-form-controller.ts#L93)
3434
3535
## Properties
3636
@@ -40,9 +40,9 @@ new TanStackFormController<TParentData, TFormValidator>(host, config?): TanStack
4040
api: FormApi<TParentData, TFormValidator>;
4141
```
4242
43-
#### Source
43+
#### Defined in
4444
45-
[tanstack-form-controller.ts:91](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/lit-form/src/tanstack-form-controller.ts#L91)
45+
[tanstack-form-controller.ts:91](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/lit-form/src/tanstack-form-controller.ts#L91)
4646
4747
## Methods
4848
@@ -52,7 +52,7 @@ api: FormApi<TParentData, TFormValidator>;
5252
field<TName, TFieldValidator, TData>(fieldConfig, render): object
5353
```
5454
55-
#### Type parameters
55+
#### Type Parameters
5656
5757
• **TName** *extends* `string` \| `number`
5858
@@ -94,9 +94,9 @@ options: FieldOptions<TParentData, TName, TFieldValidator, TFormValidator, TData
9494
render: renderCallback<TParentData, TName, TFieldValidator, TFormValidator, TData>;
9595
```
9696
97-
#### Source
97+
#### Defined in
9898
99-
[tanstack-form-controller.ts:112](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/lit-form/src/tanstack-form-controller.ts#L112)
99+
[tanstack-form-controller.ts:112](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/lit-form/src/tanstack-form-controller.ts#L112)
100100
101101
***
102102
@@ -106,6 +106,10 @@ render: renderCallback<TParentData, TName, TFieldValidator, TFormValidator, TDat
106106
hostConnected(): void
107107
```
108108
109+
Called when the host is connected to the component tree. For custom
110+
element hosts, this corresponds to the `connectedCallback()` lifecycle,
111+
which is only called when the component is connected to the document.
112+
109113
#### Returns
110114
111115
`void`
@@ -114,9 +118,9 @@ hostConnected(): void
114118
115119
`ReactiveController.hostConnected`
116120
117-
#### Source
121+
#### Defined in
118122
119-
[tanstack-form-controller.ts:102](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/lit-form/src/tanstack-form-controller.ts#L102)
123+
[tanstack-form-controller.ts:102](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/lit-form/src/tanstack-form-controller.ts#L102)
120124
121125
***
122126
@@ -126,6 +130,11 @@ hostConnected(): void
126130
hostDisconnected(): void
127131
```
128132
133+
Called when the host is disconnected from the component tree. For custom
134+
element hosts, this corresponds to the `disconnectedCallback()` lifecycle,
135+
which is called the host or an ancestor component is disconnected from the
136+
document.
137+
129138
#### Returns
130139
131140
`void`
@@ -134,6 +143,6 @@ hostDisconnected(): void
134143
135144
`ReactiveController.hostDisconnected`
136145
137-
#### Source
146+
#### Defined in
138147
139-
[tanstack-form-controller.ts:108](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/lit-form/src/tanstack-form-controller.ts#L108)
148+
[tanstack-form-controller.ts:108](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/lit-form/src/tanstack-form-controller.ts#L108)

docs/framework/react/reference/field.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A function component that takes field options and a render function as children
88

99
The `Field` component uses the `useField` hook internally to manage the field instance.
1010

11-
## Type parameters
11+
## Type Parameters
1212

1313
**TParentData**
1414

@@ -28,6 +28,6 @@ The `Field` component uses the `useField` hook internally to manage the field in
2828

2929
`ReactNode`
3030

31-
## Source
31+
## Defined in
3232

33-
[useField.tsx:163](https://github.com/TanStack/form/blob/ada0211684adc85c41587b076e1217390ff5344e/packages/react-form/src/useField.tsx#L163)
33+
[useField.tsx:163](https://github.com/TanStack/form/blob/2bebfd5214c4cdfbf6feacb7b1e25a6825957062/packages/react-form/src/useField.tsx#L163)

0 commit comments

Comments
 (0)