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 } 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'