node-test-bed-adapter
Version:
An adapter to connect a node.js application to the Test-bed's Common Information Space or Common Simulation Space.
12 lines (11 loc) • 542 B
text/typescript
import { IValidator } from '../models/validator.mjs';
import { IEncoder } from '../models/encoder.mjs';
import { IDecoder } from '../models/decoder.mjs';
import { SchemaRegistry } from './schema-registry.mjs';
/**
* Create an object that knows how to validate/encode/decode keys and values of a message.
*
* @param sr Schema registry
* @param topic Topic to publish to. Is also the key to retreive schema's for key/value
*/
export declare const avroHelperFactory: (sr: SchemaRegistry, topic: string) => IValidator & IEncoder & IDecoder;