diff --git a/src/@types.ts b/src/@types.ts index ad683a0..704dad7 100644 --- a/src/@types.ts +++ b/src/@types.ts @@ -23,10 +23,12 @@ export type AvroOptions = Partial & { } export type JsonOptions = ConstructorParameters[0] & { - ajvInstance?: { - addSchema: Ajv['addSchema'] - compile: (schema: any) => ValidateFunction - } + ajvInstance?: + | { + addSchema: Ajv['addSchema'] + compile: (schema: any) => ValidateFunction + } + | Ajv referencedSchemas?: JsonConfluentSchema[] } export type ProtoOptions = { messageName?: string; referencedSchemas?: ProtoConfluentSchema[] }