Chore: fix some more types (#72726)

fix some more types
This commit is contained in:
Ashley Harrison
2023-08-14 16:04:04 +01:00
committed by GitHub
parent 7c098c59fd
commit 963fffeef1
21 changed files with 98 additions and 145 deletions

View File

@@ -210,7 +210,7 @@ export function loadDataSource(uid: string): ThunkResult<Promise<DataSourceSetti
export function loadDataSourceMeta(dataSource: DataSourceSettings): ThunkResult<void> {
return async (dispatch) => {
const pluginInfo = (await getPluginSettings(dataSource.type)) as DataSourcePluginMeta;
const pluginInfo: DataSourcePluginMeta = await getPluginSettings(dataSource.type);
const plugin = await importDataSourcePlugin(pluginInfo);
const isBackend = plugin.DataSourceClass.prototype instanceof DataSourceWithBackend;
const meta = {