fix(nuxt): correct revive payload data type (#22667)

This commit is contained in:
Eduardo San Martin Morote 2023-08-16 16:16:06 +02:00 committed by GitHub
parent 28e4cc298c
commit f0cc923609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ export function definePayloadReducer (
*/
export function definePayloadReviver (
name: string,
revive: (data: string) => any | undefined
revive: (data: any) => any | undefined
) {
if (import.meta.dev && getCurrentInstance()) {
console.warn('[nuxt] [definePayloadReviver] This function must be called in a Nuxt plugin that is `unshift`ed to the beginning of the Nuxt plugins array.')