Skip to content

Commit c921eed

Browse files
committed
cleanup jsdoc
1 parent e6f4b51 commit c921eed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@react-stately/utils/src/useControlledState.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import {useCallback, useEffect, useRef, useState} from 'react';
1515
/**
1616
* Provides state management for controlled and uncontrolled values.
1717
*
18-
* @param value The controlled value. Pass `undefined` to make the component uncontrolled.
19-
* @param defaultValue The initial value when uncontrolled.
20-
* @param onChange Callback fired whenever the value changes.
18+
* @param value - The controlled value. Pass `undefined` to make the component uncontrolled.
19+
* @param defaultValue - The initial value when uncontrolled.
20+
* @param onChange - Callback fired whenever the value changes.
2121
*/
2222
export function useControlledState<T, C = T>(value: Exclude<T, undefined>, defaultValue: Exclude<T, undefined> | undefined, onChange?: (v: C, ...args: any[]) => void): [T, (value: T, ...args: any[]) => void];
2323
export function useControlledState<T, C = T>(value: Exclude<T, undefined> | undefined, defaultValue: Exclude<T, undefined>, onChange?: (v: C, ...args: any[]) => void): [T, (value: T, ...args: any[]) => void];

0 commit comments

Comments
 (0)