mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): correct revive payload data type (#22667)
This commit is contained in:
parent
28e4cc298c
commit
f0cc923609
@ -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.')
|
||||
|
Loading…
Reference in New Issue
Block a user