Skip to content

Commit b87f204

Browse files
committed
fix core api
1 parent 8aa878d commit b87f204

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/async-storage/src/AsyncStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface AsyncStorage {
5151
* Retrieves all keys currently stored.
5252
* @returns A Promise resolving to an array of keys.
5353
*/
54-
getKeys(): Promise<string[]>;
54+
getAllKeys(): Promise<string[]>;
5555

5656
/**
5757
* Clears all data from the storage.

packages/async-storage/src/createAsyncStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class AsyncStorageImpl implements AsyncStorage {
4545
removeMany = async (keys: string[]): Promise<void> =>
4646
this.db.removeValues(this.dbName, keys);
4747

48-
getKeys = (): Promise<string[]> => this.db.getKeys(this.dbName);
48+
getAllKeys = (): Promise<string[]> => this.db.getKeys(this.dbName);
4949

5050
clear = (): Promise<void> => this.db.clearStorage(this.dbName);
5151
}

0 commit comments

Comments
 (0)