You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Saves an item to storage with the specified key. You can store items of any of t
98
98
| Param | Type | Default | Description |
99
99
| ----- | ---- | ------- | ----------- |
100
100
| key |`string`| - | The key under which to store the item. |
101
-
| value |`any`| - | The item to save to the selected storage. |
101
+
| value |`unknown`| - | The item to save to the selected storage. |
102
102
103
103
**Usage**
104
104
@@ -133,7 +133,7 @@ If you store special or non-JSON-safe values, they may not round-trip exactly as
133
133
Gets the saved item for the specified key from the storage for a specific datastore.
134
134
135
135
**Throws:**`TypeError` - Throws if `key` is not a string.
136
-
**Returns:**`[any, Error | null]` - Returns an array with two elements: the first is the value of the saved item, and the second is `null` if no error occurred, or an `Error` object if an error occurred.
136
+
**Returns:**`[unknown, Error | null]` - Returns an array with two elements: the first is the value of the saved item, and the second is `null` if no error occurred, or an `Error` object if an error occurred.
137
137
138
138
| Param | Type | Default | Description |
139
139
| ----- | ---- | ------- | ----------- |
@@ -210,7 +210,7 @@ Iterates over all saved items in storage for a specific datastore and execute a
210
210
211
211
| Param | Type | Default | Description |
212
212
| ----- | ---- | ------- | ----------- |
213
-
| iteratorCallback |`(value: any, key: string) => void`| - | A callabck function to be executed for each iteration |
213
+
| iteratorCallback |`(value: unknown, key: string) => void`| - | A callabck function to be executed for each iteration |
0 commit comments