Skip to content

Commit 7a986f3

Browse files
committed
fix(api): edit state optional params
1 parent 51f7c1c commit 7a986f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/src/api/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export type HookPayloads = {
9898
path: string[]
9999
type: string
100100
state: EditStatePayload
101-
set: (object: any, path: string | (string[]), value: any, cb?: (object: any, field: string, value: any) => void) => void
101+
set: (object: any, path?: string | (string[]), value?: any, cb?: (object: any, field: string, value: any) => void) => void
102102
}
103103
[Hooks.GET_COMPONENT_DEVTOOLS_OPTIONS]: {
104104
componentInstance: ComponentInstance

0 commit comments

Comments
 (0)