Skip to content

Commit 7a7ea77

Browse files
committed
Update README types from any to unknown for value parameters
1 parent e8c999d commit 7a7ea77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Saves an item to storage with the specified key. You can store items of any of t
9898
| Param | Type | Default | Description |
9999
| ----- | ---- | ------- | ----------- |
100100
| 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. |
102102

103103
**Usage**
104104

@@ -133,7 +133,7 @@ If you store special or non-JSON-safe values, they may not round-trip exactly as
133133
Gets the saved item for the specified key from the storage for a specific datastore.
134134

135135
**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.
137137

138138
| Param | Type | Default | Description |
139139
| ----- | ---- | ------- | ----------- |
@@ -210,7 +210,7 @@ Iterates over all saved items in storage for a specific datastore and execute a
210210

211211
| Param | Type | Default | Description |
212212
| ----- | ---- | ------- | ----------- |
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 |
214214

215215
**Usage**
216216

0 commit comments

Comments
 (0)