mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Correctly identify a few methods as polymorphic
Since these methods return `this`, we should modify the return value to reflect that so that inherited classes have the return type appropriately identified as the inherited class
This commit is contained in:
Vendored
+3
-3
@@ -33,9 +33,9 @@ export function parseDSN(dsn: string | false): parsedDSN;
|
||||
export class Client extends EventEmitter {
|
||||
constructor(options: ConstructorOptions);
|
||||
constructor(dsn: string, options?: ConstructorOptions);
|
||||
config(dsn: string, options?: ConstructorOptions): Client;
|
||||
install(options?: ConstructorOptions, cb?: () => void): Client;
|
||||
setContext(ctx: any): Client;
|
||||
config(dsn: string, options?: ConstructorOptions): this;
|
||||
install(options?: ConstructorOptions, cb?: () => void): this;
|
||||
setContext(ctx: any): this;
|
||||
requestHandler(): (req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
||||
errorHandler(): (e: Error, req: IncomingMessage, res: ServerResponse, next: () => void) => void;
|
||||
captureException(error: Error, cb?: CaptureCallback): string;
|
||||
|
||||
Reference in New Issue
Block a user