diff --git a/webtorrent/index.d.ts b/webtorrent/index.d.ts index 554094421e..207015f871 100644 --- a/webtorrent/index.d.ts +++ b/webtorrent/index.d.ts @@ -61,8 +61,6 @@ declare namespace WebTorrent { readonly progress: number; readonly ratio: number; - - readonly name: string; } export interface Torrent extends NodeJS.EventEmitter { @@ -98,6 +96,8 @@ declare namespace WebTorrent { readonly ready: boolean; + readonly name: string; + destroy(cb?: (err: Error | string) => void): void; addPeer(peer: string | SimplePeer): boolean;