main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
329 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | import type {Plugin} from "ajv"
|
---|
| 2 | import getDefs from "../definitions/select"
|
---|
| 3 | import type {DefinitionOptions} from "../definitions/_types"
|
---|
| 4 |
|
---|
| 5 | const select: Plugin<DefinitionOptions> = (ajv, opts?: DefinitionOptions) => {
|
---|
| 6 | getDefs(opts).forEach((d) => ajv.addKeyword(d))
|
---|
| 7 | return ajv
|
---|
| 8 | }
|
---|
| 9 |
|
---|
| 10 | export default select
|
---|
| 11 | module.exports = select
|
---|
Note:
See
TracBrowser
for help on using the repository browser.