diff --git a/packages/ui-default/components/scratchpad/index.tsx b/packages/ui-default/components/scratchpad/index.tsx index 33f0460c..842f2b00 100644 --- a/packages/ui-default/components/scratchpad/index.tsx +++ b/packages/ui-default/components/scratchpad/index.tsx @@ -13,7 +13,7 @@ import ScratchpadPretest from './ScratchpadPretestContainer'; import ScratchpadRecords from './ScratchpadRecordsContainer'; import ScratchpadToolbar from './ScratchpadToolbarContainer'; -function buildNestedPane([a, ...panes], mode = 'horizontal') { +function buildNestedPane([a, ...panes], mode: 'horizontal' | 'vertical' = 'horizontal') { const elements = [ a, ...panes.filter((p) => p.props.visible), diff --git a/packages/ui-default/entry.js b/packages/ui-default/entry.js index bafbe8f1..c96d9233 100644 --- a/packages/ui-default/entry.js +++ b/packages/ui-default/entry.js @@ -1,5 +1,4 @@ import $ from 'jquery'; -import * as bus from './bus'; window.Hydro = { extraPages: [], @@ -7,7 +6,6 @@ window.Hydro = { utils: {}, node_modules: {}, version: process.env.VERSION, - bus, }; window.externalModules = {}; window.lazyModuleResolver = {}; diff --git a/packages/ui-default/typed.d.ts b/packages/ui-default/typed.d.ts new file mode 100644 index 00000000..f47674d7 --- /dev/null +++ b/packages/ui-default/typed.d.ts @@ -0,0 +1,5 @@ +declare module '*.svg?react' { + import { ComponentType } from 'react' + const content: ComponentType + export default content + } \ No newline at end of file