Skip to content

Commit 14a5ea6

Browse files
authored
Merge pull request #121 from monterail/b74ed415
fix: update validator desc * fix: update validator desc * Update src/api/options-state.md --------- Co-authored-by: Natalia Tepluhina <[email protected]> (#120)
2 parents 4aedc9f + c3b3c0f commit 14a5ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/options-state.md

+1-1
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)