Skip to content

Commit

Permalink
Restored clobbered code, whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
divmgl committed Dec 28, 2021
1 parent b98a61c commit 27a2869
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 62 deletions.
6 changes: 3 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="node" />
import { Socket } from 'net';
import { CommandExecution, CommandHandler, ConnectOpts, Job, CtorOpts } from './types';
import { CommandExecution, CommandHandler, ConnectOpts, Job, CtorOpts, PutOpts } from './types';
export declare class JackdClient {
socket: Socket;
connected: Boolean;
Expand All @@ -20,7 +20,7 @@ export declare class JackdClient {
disconnect: () => Promise<void>;
executeCommand: (...args: any[]) => Promise<any>;
use: (tubeId: string) => Promise<string>;
put: (payload: string | object | Buffer, options?: import("./types").PutOpts) => Promise<string>;
put: (payload: string | object | Buffer, options?: PutOpts) => Promise<Buffer>;
delete: (jobId: string) => Promise<void>;
createReserveHandlers(): CommandHandler[];
reserve: () => Promise<Job>;
Expand All @@ -37,7 +37,7 @@ export declare class JackdClient {
kick: (jobsCount: number) => Promise<void>;
kickJob: (jobId: string) => Promise<void>;
getCurrentTube: () => Promise<string>;
createCommandHandler<TArgs extends any[], TReturn>(commandStringFunction: (...args: any[]) => string, handlers: CommandHandler[]): (...args: TArgs) => Promise<TReturn>;
createCommandHandler<TArgs extends any[], TReturn>(commandStringFunction: (...args: any[]) => Buffer, handlers: CommandHandler[]): (...args: TArgs) => Promise<TReturn>;
}
export declare class InvalidResponseError extends Error {
response: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 24 additions & 22 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 27a2869

Please sign in to comment.