Skip to content

Commit

Permalink
docs: update docs for #4766
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Jun 3, 2024
1 parent fdb2d47 commit cf0c07d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/pages/guide/global-validators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ Or you can globally define all the available rules in the `@vee-validate/rules`

```js
import { defineRule } from 'vee-validate';
import * as AllRules from '@vee-validate/rules';
import { all } from '@vee-validate/rules';

Object.keys(AllRules).forEach(rule => {
defineRule(rule, AllRules[rule]);
Object.entries(all).forEach(([name, rule]) => {
defineRule(name, rule);
});
```

Expand Down

0 comments on commit cf0c07d

Please sign in to comment.