diff --git a/index.d.ts b/index.d.ts index a6b7911..f7bc9d0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -10,7 +10,7 @@ declare module 'stormdb' { delete(reindexLists: boolean): void; push(value: any): void; get(value: any): StormDB; - set(key: any, value: any): StormDB; + set(key: any, value?: any): StormDB; map(func: (value: any, index?: number, array?: any[]) => T): StormDB; sort(func: (a: T, b: T) => number): StormDB; filter(func: (value: T, index?: number, array?: T[]) => value is S): StormDB;