mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-10 04:00:10 +00:00
ndn-js: fix MemoryContentCache.storePendingInterest
This commit is contained in:
3
types/ndn-js/memory-content-cache.d.ts
vendored
3
types/ndn-js/memory-content-cache.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user