ok
Returns a dictionary containing the provided value associated with the key 'ok'.
def ok(
value: any
) - > dict
Wraps a value in a dictionary with an 'ok' key to indicate a successful operation result.
Parameters
| Name | Type | Description |
|---|---|---|
| value | any | The data or status value to be returned as part of a successful response. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the provided value mapped to the key 'ok'. |