From 06db85b47e4aa830e67c76cb0eda6bd5dd02e9c8 Mon Sep 17 00:00:00 2001 From: Tom <47010185+TomPrograms@users.noreply.github.com> Date: Tue, 24 Aug 2021 19:00:55 +0100 Subject: [PATCH] Fix #31 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;