diff --git a/src/index.ts b/src/index.ts index 02e2eae..20d9ab4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -73,7 +73,7 @@ export default class DHTCache extends EventEmitter { private _cache: Set; - public get cache(): {} { + public get cache(): string[] { return [...this._cache].sort(); }