mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
refactor(explore): improve typing for Dnd controls (#16362)
This commit is contained in:
@@ -45,7 +45,7 @@ const datasource = {
|
||||
datasource_name: 'table1',
|
||||
description: 'desc',
|
||||
};
|
||||
const props = {
|
||||
const props: DatasourcePanelProps = {
|
||||
datasource,
|
||||
controls: {
|
||||
datasource: {
|
||||
@@ -57,12 +57,7 @@ const props = {
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
setControlValue: () => ({
|
||||
type: 'type',
|
||||
controlName: 'control',
|
||||
value: 'val',
|
||||
validationErrors: [],
|
||||
}),
|
||||
setControlValue: jest.fn(),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user