Custom Threshold bar gauge

I want to create custom Threshold for bar gauge (react plugin). I want to add custom editor for field and replace with existing Threshold for bar gauge.
Example:
.addCustomEditor({
id: ‘threshold’,
path: ‘threshold’,
name: ‘Thresholds’,
editor: () => //Not able to set CustomThresholdEditor
override: () =>,//Not able to set ThresholdEditor (Referring default)
isCustom:true,
process: identityOverrideProcessor,
shouldApply: () => true,
defaultValue: { value: ‘Custom default value’ },
});

I am not able to set override and editor. I have no idea i am in right direction or not.

What errors are you getting?

For inspiration, here’s an example that uses a custom editor from one of my plugins: