Skip to content

Commit 275d147

Browse files
committed
fix(api): on.editInspectorState set type
1 parent db2eca9 commit 275d147

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
@@ -135,7 +135,7 @@ export type HookPayloads = {
135135
path: string[]
136136
type: string
137137
state: EditStatePayload
138-
set: (object: any, path: string | (string[]), value: any, cb?: (object: any, field: string, value: any) => void) => void
138+
set: (object: any, path?: string | (string[]), value?: any, cb?: (object: any, field: string, value: any) => void) => void
139139
}
140140
[Hooks.SET_PLUGIN_SETTINGS]: {
141141
app: App

0 commit comments

Comments
 (0)