Skip to content

Commit 296d894

Browse files
refactor: Add description
1 parent 46c9e71 commit 296d894

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@react-stately/datepicker/src/useDateFieldState.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export interface DateFieldState extends FormValidationState {
9393
/** Sets the value of the given segment. */
9494
setSegment(type: 'era', value: string): void,
9595
setSegment(type: SegmentType, value: number): void,
96+
/** Sets the value of the given segment by the maximum or the minimum, for example 31 days, 12 months, and 9999 years. */
9697
incrementToMinMax(type: SegmentType, value: number): void,
9798
/** Updates the remaining unfilled segments with the placeholder value. */
9899
confirmPlaceholder(): void,

0 commit comments

Comments
 (0)