1
0
mirror of synced 2026-03-24 11:48:35 +08:00

style(data-source): 去掉any

This commit is contained in:
roymondchen
2023-08-25 17:44:57 +08:00
parent 7f48b4d9f5
commit 131ec6fff3
5 changed files with 11 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ import EventEmitter from 'events';
import { cloneDeep, template } from 'lodash-es';
import type Core from '@tmagic/core';
import type { DataSourceSchema, Id, MNode } from '@tmagic/schema';
import { compiledCond, compiledNode } from '@tmagic/utils';
@@ -37,7 +38,7 @@ class DataSourceManager extends EventEmitter {
return DataSourceManager.dataSourceClassMap.get(type);
}
public app: any;
public app: Core;
public dataSourceMap = new Map<string, DataSource>();
@@ -48,7 +49,7 @@ class DataSourceManager extends EventEmitter {
this.app = app;
app.dsl?.dataSources?.forEach((config: any) => {
app.dsl?.dataSources?.forEach((config) => {
this.addDataSource(config);
});
}