From 3a7e4fdba4909f6d7474736d60c58f8b1d306169 Mon Sep 17 00:00:00 2001 From: Jeffrey Holm Date: Thu, 3 Oct 2024 15:53:18 -0400 Subject: [PATCH 1/2] Update SchemaRegistry.ts --- src/SchemaRegistry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SchemaRegistry.ts b/src/SchemaRegistry.ts index cb8ce32..b0e0827 100644 --- a/src/SchemaRegistry.ts +++ b/src/SchemaRegistry.ts @@ -46,7 +46,7 @@ interface Opts { interface AvroDecodeOptions { readerSchema?: RawAvroSchema | AvroSchema | Schema } -interface DecodeOptions { +export interface DecodeOptions { [SchemaType.AVRO]?: AvroDecodeOptions } From 3734c6e388b025095adde1f6aab79811d1a90d40 Mon Sep 17 00:00:00 2001 From: Jeff Holm Date: Thu, 3 Oct 2024 16:18:19 -0400 Subject: [PATCH 2/2] add export to index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index afe7f9b..3c362da 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export { default as SchemaRegistry } from './SchemaRegistry' +export { default as SchemaRegistry, DecodeOptions } from './SchemaRegistry' export * from './utils' export { SchemaType } from './@types' export { COMPATIBILITY } from './constants'