mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
silent lint for bittorrent-protocol
This commit is contained in:
Vendored
+2
@@ -16,6 +16,7 @@ declare namespace BittorrentProtocol {
|
||||
}
|
||||
|
||||
export interface Extension {
|
||||
//tslint:disable-next-line:no-misused-new - could use class instead of interface but class is not extendible
|
||||
constructor(wire: Wire): this;
|
||||
onHandshake?: () => void;
|
||||
onExtendedHandshake?: () => void;
|
||||
@@ -24,6 +25,7 @@ declare namespace BittorrentProtocol {
|
||||
}
|
||||
|
||||
export interface Request {
|
||||
//tslint:disable-next-line:no-misused-new - could use class instead of interface but class is not extendible
|
||||
constructor(piece: number, offset: number, length: number, callback: () => void): this;
|
||||
piece: number;
|
||||
offset: number;
|
||||
|
||||
Reference in New Issue
Block a user