From 66f7494816f8e5f50fbcf3359b2a30ca7f2da3dd Mon Sep 17 00:00:00 2001 From: Ben Durrant Date: Fri, 13 Sep 2024 14:03:11 +0100 Subject: [PATCH] make serializeError description consistent --- docs/api/createAsyncThunk.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/createAsyncThunk.mdx b/docs/api/createAsyncThunk.mdx index 267675725f..dc4ceae2db 100644 --- a/docs/api/createAsyncThunk.mdx +++ b/docs/api/createAsyncThunk.mdx @@ -780,7 +780,7 @@ Options specified when calling `createAsyncThunk` will override options specifie An object with the following optional fields: -- `serializeError(error: unknown) => GetSerializedErrorType` to replace or extend the default serializer method with your own serialization logic. +- `serializeError(error: unknown) => any` to replace the internal `miniSerializeError` method with your own serialization logic. - `idGenerator(arg: unknown) => string`: a function to use when generating the `requestId` for the request sequence. Defaults to use [nanoid](./otherExports.mdx/#nanoid), but you can implement your own ID generation logic. ### Return Value