[tsc] [widget] widget-src/code.tsx(99,14): error TS2769: No overload matches this call.
[tsc] [widget] Overload 1 of 3, '(type: "run", callback: (event: RunEvent<ParameterValues>) => void): void', gave the following error.
[tsc] [widget] Argument of type '"documentchange"' is not assignable to parameter of type '"run"'.
[tsc] [widget] Overload 2 of 3, '(type: "drop", callback: (event: DropEvent) => boolean): void', gave the following error.
[tsc] [widget] Argument of type '"documentchange"' is not assignable to parameter of type '"drop"'.
[tsc] [widget] Overload 3 of 3, '(type: ArgFreeEventType, callback: () => void): void', gave the following error.
[tsc] [widget] Argument of type '"documentchange"' is not assignable to parameter of type 'ArgFreeEventType'.
[tsc] [widget]
documentchange is mentioned in the docs: https://www.figma.com/plugin-docs/api/properties/figma-on/#documentchange
figma.on('documentchange', onDocumentChange)