DataSourceHttpSettings type error

Hi, I am fairly new to Grafana. I am trying to modify and create a custom ElasticSearch plugin based on the original plugin that is built into Grafana.

When i run ‘yarn dev’, i encountered this error:

Type ‘(options: DataSourceSettings<ElasticsearchOptions, {}>) => void’ is not assignable to type ‘(config: DataSourceSettings<DataSourceJsonData, {}>) => void’.
Types of parameters ‘options’ and ‘config’ are incompatible.
Type ‘DataSourceSettings<DataSourceJsonData, {}>’ is not assignable to type ‘DataSourceSettings<ElasticsearchOptions, {}>’.
Type ‘DataSourceJsonData’ is missing the following properties from type ‘ElasticsearchOptions’: timeField, esVersion, timeIntervalts(2322)

The error seems to come from the property which is highlighted in bold:


Does anyone have any idea on this?