From 72d56bd5bac2ceea15a9277863ef12a431b635e3 Mon Sep 17 00:00:00 2001 From: Colin Luo Date: Sun, 3 Jan 2021 13:44:37 +0800 Subject: [PATCH] Fixed ajvKeywords.default is not a function. Refer to ajv-formats at: https://github.com/ajv-validator/ajv-formats/blob/ce49433448384b4c0b2407adafc345e43b85f8ea/src/index.ts#L63 --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 2ba35a4..bb580fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,3 +27,6 @@ function get(keyword: string): Plugin { export default ajvKeywords module.exports = ajvKeywords + +// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access +module.exports.default = ajvKeywords