Skip to content

Commit c3b3c0f

Browse files
bteaNataliaTepluhina
authored andcommitted
fix: update validator desc (#3152)
* fix: update validator desc * Update src/api/options-state.md --------- Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent d5f7ede commit c3b3c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/options-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Declare the props of a component.
9393
9494
- **`required`**: Defines if the prop is required. In a non-production environment, a console warning will be thrown if this value is truthy and the prop is not passed.
9595
96-
- **`validator`**: Custom validator function that takes the prop value as the sole argument. In development mode, a console warning will be thrown if this function returns a falsy value (i.e. the validation fails).
96+
- **`validator`**: Custom validator function that takes the prop value and props object as arguments. In development mode, a console warning will be thrown if this function returns a falsy value (i.e. the validation fails).
9797
9898
- **Example**
9999

0 commit comments

Comments
 (0)