diff --git a/superset-frontend/spec/javascripts/utils/getClientErrorObject_spec.js b/superset-frontend/spec/javascripts/utils/getClientErrorObject_spec.ts similarity index 100% rename from superset-frontend/spec/javascripts/utils/getClientErrorObject_spec.js rename to superset-frontend/spec/javascripts/utils/getClientErrorObject_spec.ts diff --git a/superset-frontend/src/setup/setupApp.ts b/superset-frontend/src/setup/setupApp.ts index e81c6d2ba..b4a9ca7ef 100644 --- a/superset-frontend/src/setup/setupApp.ts +++ b/superset-frontend/src/setup/setupApp.ts @@ -19,10 +19,12 @@ /* eslint global-require: 0 */ import $ from 'jquery'; import { SupersetClient } from '@superset-ui/connection'; -import getClientErrorObject from '../utils/getClientErrorObject'; +import getClientErrorObject, { + ClientErrorObject, +} from '../utils/getClientErrorObject'; import setupErrorMessages from './setupErrorMessages'; -function showApiMessage(resp: { severity?: string; message: string }) { +function showApiMessage(resp: ClientErrorObject) { const template = '
' + '