mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
210 B
TypeScript
12 lines
210 B
TypeScript
import Hemera = require('nats-hemera');
|
|
|
|
const nats = {};
|
|
const hemera: any = new Hemera(nats, {});
|
|
hemera.ready(() => {
|
|
hemera.add({
|
|
topic: 'math',
|
|
cmd: 'add'
|
|
}, (req: any, cb: any) => {
|
|
});
|
|
});
|