Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
erffy committed Jan 13, 2023
1 parent 5c7ea46 commit a7a4eb9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Storage module for wump.js",
"main": "src/index.js",
"type": "module",
"types": "./src/index.d.ts",
"types": "./src/global.d.ts",
"scripts": {
"test": "node src/test/index"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Storage extends EventEmitter {

/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param {( value: any, key: string, index: number, this: Storage )} callback A function that accepts up to four arguments. The map method calls the callback function one time for each element in the array.
* @param {( value: any, key: string, index: number, this: Storage )} callback A function that accepts up to four arguments. The map method calls the callback function one time for each element in the array.
* @returns {void[]}
*/
map(callback) {
Expand Down
4 changes: 2 additions & 2 deletions src/index.d.ts → src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ declare module "@wumpjs/storage" {
public get(key: string): V;
public exists(key: string): boolean;
public has(key: string): boolean;
public map(callback: Function): void[];
public find(callback: Function): boolean | undefined;
public map(callback: (value: V, key: string, index: number, Storage: Storage<V>) => any): void[];
public find(callback: (value: V, key: string, Storage: Storage<V>) => any): boolean | undefined;
public reverse(): Storage<V>;
public clear(): string[];
public filter(callback: (value: V, key: string, index: number, Storage: Storage<V>) => any): any;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"esModuleInterop": true
},
"files": [
"./src/index.d.ts"
"./src/global.d.ts"
]
}

0 comments on commit a7a4eb9

Please sign in to comment.