Skip to content

Commit

Permalink
Undo some import type
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 30, 2021
1 parent 0e8fcd4 commit 254cc0c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion plugins/linear-comparative-view/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function WindowSizeDlg(props: {
const supplementaryAlignments = SA.split(';')
.filter(aln => !!aln)
.map((aln, index) => {
const [saRef, saStart /* saStrand*/, , saCigar] = aln.split(',')
const [saRef, saStart, , saCigar] = aln.split(',')
const saLengthOnRef = getLengthOnRef(saCigar)
const saLength = getLength(saCigar)
const saLengthSansClipping = getLengthSansClipping(saCigar)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ function RefNameAutocomplete({

options =
options.length > 100 ? options.slice(0, 100).concat(limitOption) : options
// assembly and regions have loaded
// const loaded = regions.length !== 0 && assemblyName
useEffect(() => {
let active = true

Expand Down
4 changes: 2 additions & 2 deletions products/jbrowse-desktop/src/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import PluginManager from '@jbrowse/core/PluginManager'
import CircularProgress from '@material-ui/core/CircularProgress'
import { makeStyles } from '@material-ui/core/styles'
import React, { useEffect, useState } from 'react'
import type { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
import type { SnapshotIn } from 'mobx-state-tree'
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
import { SnapshotIn } from 'mobx-state-tree'
import PluginLoader from '@jbrowse/core/PluginLoader'

import {
Expand Down
13 changes: 9 additions & 4 deletions products/jbrowse-desktop/src/rootModel.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import assemblyManagerFactory, {
assemblyConfigSchemas as AssemblyConfigSchemasFactory,
} from '@jbrowse/core/assemblyManager'
import PluginManager from '@jbrowse/core/PluginManager'
import RpcManager from '@jbrowse/core/rpc/RpcManager'
import type PluginManager from '@jbrowse/core/PluginManager'
import type { MenuItem } from '@jbrowse/core/ui'
import { MenuItem } from '@jbrowse/core/ui'
import AddIcon from '@material-ui/icons/Add'
import SettingsIcon from '@material-ui/icons/Settings'
import AppsIcon from '@material-ui/icons/Apps'
import { cast, getParent, getSnapshot, types } from 'mobx-state-tree'
import type { SnapshotIn } from 'mobx-state-tree'
import {
cast,
getParent,
getSnapshot,
SnapshotIn,
types,
} from 'mobx-state-tree'
import JBrowseDesktop from './jbrowseModel'
import sessionModelFactory from './sessionModelFactory'

Expand Down
9 changes: 5 additions & 4 deletions products/jbrowse-desktop/src/sessionModelFactory.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { lazy } from 'react'
import type { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
import {
readConfObject,
isConfigurationModel,
} from '@jbrowse/core/configuration'
import type {
import {
Region,
NotificationLevel,
TrackViewModel,
Expand All @@ -18,14 +18,15 @@ import {
getParent,
getSnapshot,
getType,
IAnyStateTreeNode,
isAlive,
isModelType,
isReferenceType,
SnapshotIn,
types,
walk,
} from 'mobx-state-tree'
import type { SnapshotIn, IAnyStateTreeNode } from 'mobx-state-tree'
import type PluginManager from '@jbrowse/core/PluginManager'
import PluginManager from '@jbrowse/core/PluginManager'

import SettingsIcon from '@material-ui/icons/Settings'
import CopyIcon from '@material-ui/icons/FileCopy'
Expand Down
3 changes: 1 addition & 2 deletions products/jbrowse-desktop/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { remoteAbortRpcHandler } from '@jbrowse/core/rpc/remoteAbortSignals'
import { isAbortException } from '@jbrowse/core/util'
import { useStaticRendering } from 'mobx-react'
import RpcMethodType from '@jbrowse/core/pluggableElementTypes/RpcMethodType'
import PluginLoader from '@jbrowse/core/PluginLoader'
import type { PluginDefinition } from '@jbrowse/core/PluginLoader'
import PluginLoader, { PluginDefinition } from '@jbrowse/core/PluginLoader'
import corePlugins from './corePlugins'

const { electron, electronBetterIpc } = window
Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-web/src/Loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
QueryParamProvider,
useQueryParam,
} from 'use-query-params'
import type { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
import { types, addDisposer, Instance, SnapshotOut } from 'mobx-state-tree'
import { autorun } from 'mobx'
import { FatalErrorDialog } from '@jbrowse/core/ui'
Expand Down

0 comments on commit 254cc0c

Please sign in to comment.