Skip to content

Commit a529ef3

Browse files
committed
Fix errors in declarations file
1 parent a6f57e8 commit a529ef3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ declare module 'SimpleDatabase' {
1212
public add(path: string, amount?: number): this;
1313
public sub(path: string, amount?: number): this;
1414
public set(path: string, value: any): this;
15-
public set(path: '', value: object): this;
16-
public delete(path: string): boolean;
15+
public set(path: '', value: object | Array<any>): this;
16+
public delete(path: string): this;
1717
public clear(): void;
1818
public moveTo(location: string, deleteFile?: boolean): this;
1919
public setSpaces(amount?: number): this;
2020

21-
public find(path: string, fn: (V: any, K: string) => boolean): any;
22-
public findAll(path: string, fn: (V: any, K: string) => boolean): any[];
21+
public find(path: string, fn: (V: any, K: string) => void): any;
22+
public findAll(path: string, fn: (V: any, K: string) => void): any[];
2323
public has(path: string): boolean;
2424
public get(path: string): any;
25-
public get(path?: ''): object;
25+
public get(path?: ''): object | Array<any>;
2626
public entries(): [string, any][];
2727
public toString(): string;
28-
public history: object[];
28+
public history: (object | Array<any>)[];
2929
public filePath: string;
3030
private read(): object | any[];
3131
private spaces: number;

0 commit comments

Comments
 (0)