Skip to content

Commit 1766508

Browse files
David Biereggeratk
authored andcommitted
Refactor property name in Storage Interface
Changed the property name from 'name' to 'key' in Storage Interface to improve code readability. This is consistent with other usages and brings more clarity about what this property actually does.
1 parent 0cf8491 commit 1766508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/storage/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type StorageWithOptions<O> = {
77
key: (index: number, options?: O) => string | null;
88
getLength?: (options?: O) => number | undefined;
99
readonly length: number | undefined;
10-
[name: string]: any;
10+
[key: string]: any;
1111
};
1212

1313
export type StorageDeserializer<T, O> = (value: string, key: string, options?: O) => T;

0 commit comments

Comments
 (0)