Skip to content

Commit 518de3b

Browse files
committed
fix(tsc): error typing
1 parent 6258f28 commit 518de3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node-nats-streaming-buffered-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ export class NatsBufferedClient extends EventEmitter
525525
private stanPublish( stan: nats.Stan, pub: IBufferItem ): Promise<IBufferItem> {
526526

527527
return new Promise( ( resolve, reject ) => {
528-
stan.publish( pub.subject, pub.data, ( error: Error|string ) =>
528+
stan.publish( pub.subject, pub.data, ( error: Error|undefined ) =>
529529
{
530530
if ( error )
531531
{

0 commit comments

Comments
 (0)