Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Dec 4, 2024
1 parent 6db08bc commit fba5b51
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ config.set('foo', '1');
**Note:** The `default` value will be overwritten by the `defaults` option if set.

#### rootSchema

Type: `object`

Top-level properties for the schema. Requires a `schema` option to be provided, and cannot contain a `properties` field.
Top-level properties for the schema. Requires the `schema` option to be specified, and cannot contain a `properties` field.

Example:

Expand All @@ -120,9 +121,10 @@ const store = new Conf({
```

#### ajvOptions

Type: `object`

Options to pass to AJV. Requires a `schema` option to be provided.
Options passed to AJV. Requires the `schema` option to be specified.

Example:

Expand All @@ -136,8 +138,8 @@ const store = new Conf({
additionalProperties: false
},
ajvOptions: {
removeAdditional: true,
},
removeAdditional: true
}
});
```

Expand Down

0 comments on commit fba5b51

Please sign in to comment.