mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
443 B
TypeScript
17 lines
443 B
TypeScript
import RabbitMqSchema = require('rabbitmq-schema');
|
|
|
|
const topology = {};
|
|
|
|
const rabbitSchema = new RabbitMqSchema({}, '');
|
|
|
|
rabbitSchema.getExchanges();
|
|
rabbitSchema.getBindings();
|
|
rabbitSchema.getQueues();
|
|
rabbitSchema.getDirectBindings();
|
|
|
|
rabbitSchema.getQueueByName('images.jpeg.get');
|
|
rabbitSchema.getExchangeByName('images');
|
|
|
|
rabbitSchema.validate(topology);
|
|
rabbitSchema.validateMessage('images', 'images.jpeg.get', {testMsg: 'ok'});
|