UNPKG

@kafkajs/confluent-schema-registry

Version:

ConfluentSchemaRegistry is a library that makes it easier to interact with the Confluent schema registry, it provides convenient methods to encode, decode and register new schemas using the Apache Avro serialization format.

5 lines (4 loc) 446 B
import { SchemaType, SchemaHelper, ConfluentSchema, SchemaRegistryAPIClientOptions, Schema, AvroSchema } from './@types'; export declare const schemaTypeFromString: (schemaTypeString: string) => SchemaType; export declare const helperTypeFromSchemaType: (schemaType?: SchemaType) => SchemaHelper; export declare const schemaFromConfluentSchema: (confluentSchema: ConfluentSchema, options?: SchemaRegistryAPIClientOptions) => Schema | AvroSchema;