Skip to content

Commit

Permalink
fix: #174 the OnChange signature containing an any type instead o…
Browse files Browse the repository at this point in the history
…f `OnChangeStatus`
  • Loading branch information
josdejong committed Oct 25, 2022
1 parent 7308eff commit c2d626f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ export interface OnChangeStatus {
contentErrors: ContentErrors
patchResult: JSONPatchResult | null
}
export type OnChange = ((content: Content, previousContent: Content, OnChangeStatus) => void) | null
export type OnChange =
| ((content: Content, previousContent: Content, status: OnChangeStatus) => void)
| null
export type OnSelect = (selection: JSONSelection) => void
export type OnPatch = (operations: JSONPatchDocument, afterPatch?: AfterPatchCallback) => void
export type OnSort = (operations: JSONPatchDocument) => void
Expand Down

0 comments on commit c2d626f

Please sign in to comment.