Eroare la metoda unwrap a thunk-ului asincron din Redux-toolkit folosind Typescript


Încerc să folosesc metoda unwrap pentru a obține acces la then, dar primesc următoarea eroare. Cum pot scăpa de asta? Nu am găsit nimic în documentație.

Property 'unwrap' does not exist on type 'AsyncThunkAction<any, RegisterCredentials, {}>'
        dispatch(register({
            email: formik.values.email,
            password: formik.values.password,
            comfirmPassword: formik.values.comfirmPassword
        })).unwrap().then(() => {
            navigate('/browse')
        })

Funcția createAsyncThunk:

type RegisterCredentials = {
    email: string,
    password: string,
    comfirmPassword: string
}

export const register = createAsyncThunk<any, RegisterCredentials>('user/register', async ({ email, password }, { rejectWithValue }) => {
})