diff --git a/index.d.ts b/index.d.ts index b03a648..e87793b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,8 +2,8 @@ declare module "lru-native2" { interface LRUCacheOptions { maxElements?: number maxAge?: number - size: number - maxLoadFactor: number + size?: number + maxLoadFactor?: number } interface LRUCacheStats { @@ -17,7 +17,7 @@ declare module "lru-native2" { type K = string class LRUCache { - constructor(options: LRUCacheOptions) + constructor(options?: LRUCacheOptions) public set(key: K, value: V): void public get(key: K): V | undefined