diff --git a/types/ndn-js/memory-content-cache.d.ts b/types/ndn-js/memory-content-cache.d.ts index 1411bebe08..75c47419c0 100644 --- a/types/ndn-js/memory-content-cache.d.ts +++ b/types/ndn-js/memory-content-cache.d.ts @@ -2,7 +2,6 @@ import { Data } from "./data"; import { Face, ForwardingFlags, InterestFilter, OnInterestCallback } from "./face"; import { Interest } from "./interest"; import { Name } from "./name"; -import { Transport } from "./transport"; export class MemoryContentCache { constructor(face: Face, cleanupIntervalMilliseconds?: number); @@ -15,6 +14,6 @@ export class MemoryContentCache { onDataNotFound?: OnInterestCallback, flags?: ForwardingFlags): void; setInterestFilter(filter: InterestFilter|Name, onDataNotFound?: OnInterestCallback): void; setMinimumCacheLifetime(minimumCacheLifetime: number): void; - storePendingInterest(interest: Interest, transport: Transport): void; + storePendingInterest(interest: Interest, face: Face): void; unregisterAll(): void; } diff --git a/types/ndn-js/test/memory-content-cache.ts b/types/ndn-js/test/memory-content-cache.ts index daa26d4e17..d809b7a442 100644 --- a/types/ndn-js/test/memory-content-cache.ts +++ b/types/ndn-js/test/memory-content-cache.ts @@ -12,4 +12,4 @@ cache.registerPrefix(new ndn.Name("/A"), cache.getStorePendingInterest()); cache.setInterestFilter(new ndn.Name("/A"), cache.getStorePendingInterest()); cache.setMinimumCacheLifetime(5000); -cache.storePendingInterest(new ndn.Interest(), new ndn.UnixTransport()); +cache.storePendingInterest(new ndn.Interest(), face);