Skip to content

Commit 995cf6c

Browse files
Pierre Cauchoisgrs
authored andcommitted
Add callbacks to SASL typings
1 parent d55925a commit 995cf6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

typings/sasl.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare class PlainClient {
2121
username: string;
2222
password: string;
2323
constructor(username: string, password: string);
24-
start(): Buffer;
24+
start(callback: Function): void;
2525
}
2626

2727
declare class AnonymousServer {
@@ -33,7 +33,7 @@ declare class AnonymousServer {
3333
declare class AnonymousClient {
3434
username: string;
3535
constructor(username: string);
36-
start(): Buffer;
36+
start(callback: Function): void;
3737
}
3838

3939
declare class ExternalServer {
@@ -44,15 +44,15 @@ declare class ExternalServer {
4444

4545
declare class ExternalClient {
4646
username?: string;
47-
start(): "";
48-
step(): ""
47+
start(callback: Function): void;
48+
step(callback: Function): void;
4949
}
5050

5151
declare class XOAuth2Client {
5252
username: string;
5353
token: string;
5454
constructor(username: string, token: string);
55-
start(): Buffer;
55+
start(callback: Function): void;
5656
}
5757

5858
declare class SaslServer {

0 commit comments

Comments
 (0)