first commit
This commit is contained in:
commit
c809bb3893
40 files changed
+3836
No files matched your search
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import { type Subscription } from 'nats';
|
||||
export declare class NatsClient {
|
||||
private client;
|
||||
private readonly stringCodec;
|
||||
connect(): Promise<void>;
|
||||
subscribe<T = unknown>(subject: string, handler: (data: T) => void | Promise<void>): Promise<Subscription>;
|
||||
publish<T = unknown>(subject: string, data: T): Promise<void>;
|
||||
close(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=nats.d.ts.map
|
||||
Reference in new issue
Block a user