@ethlete/query 5.20.0 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/esm2022/lib/query-form/query-form.mjs +4 -1
- package/esm2022/lib/query-form/query-form.types.mjs +1 -1
- package/esm2022/lib/utils/data.utils.mjs +2 -2
- package/fesm2022/ethlete-query.mjs +4 -1
- package/fesm2022/ethlete-query.mjs.map +1 -1
- package/lib/query-form/query-form.types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,8 +4,9 @@ export interface QueryFieldOptions<T = unknown> {
|
|
|
4
4
|
/**
|
|
5
5
|
* The default value of the field.
|
|
6
6
|
* Will be set to the initial value of the form control if not specified.
|
|
7
|
+
* If a function is provided, it will be called to get the default value.
|
|
7
8
|
*/
|
|
8
|
-
defaultValue?: T | null;
|
|
9
|
+
defaultValue?: T | (() => T) | null;
|
|
9
10
|
/**
|
|
10
11
|
* Debounce time in milliseconds.
|
|
11
12
|
*/
|