Skip to content

Commit

Permalink
Misc. updates
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Aug 12, 2024
1 parent fab5c5f commit ce52e14
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/apollo-mst/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from './AnnotationFeatureModel'
export * from './AnnotationFeatureModel'
export * from './ApolloAssembly'
export * from './ApolloRefSeq'
export * from './CheckResult'
2 changes: 1 addition & 1 deletion packages/apollo-shared/src/GFF3/gffReservedKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const gffToInternal: Record<GFFReservedAttribute, GFFInternalAttribute> =
export function isGFFReservedAttribute(
attribute: string,
): attribute is GFFReservedAttribute {
return gffToInternal[attribute as GFFReservedAttribute] !== undefined
return attribute in gffToInternal
}

export const internalToGFF: Record<GFFInternalAttribute, GFFReservedAttribute> =
Expand Down
1 change: 0 additions & 1 deletion packages/apollo-shared/src/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-nested-ternary */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { AnnotationFeatureSnapshot } from '@apollo-annotation/mst'
import { GFF3Feature } from '@gmod/gff'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import { AnnotationFeature } from '@apollo-annotation/mst'

import { BoxGlyph, GeneGlyph, GenericChildGlyph } from '../glyphs'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable @typescript-eslint/use-unknown-in-catch-callback-variable */
/* eslint-disable unicorn/no-nested-ternary */
/* eslint-disable @typescript-eslint/unbound-method */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */

import { AnnotationFeature } from '@apollo-annotation/mst'
import { AbstractSessionModel } from '@jbrowse/core/util'
import { observer } from 'mobx-react'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-misused-promises */
import { AnnotationFeature } from '@apollo-annotation/mst'
import { DeleteFeatureChange } from '@apollo-annotation/shared'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface RefSeqInterface {
}

export function OpenLocalFile({ handleClose, session }: OpenLocalFileProps) {
const { addApolloTrackConfig, apolloDataStore } = session
const { apolloDataStore } = session
const { addAssembly, addSessionAssembly, assemblyManager, notify } =
session as unknown as AbstractSessionModel & {
// eslint-disable-next-line @typescript-eslint/ban-types
Expand Down Expand Up @@ -104,7 +104,7 @@ export function OpenLocalFile({ handleClose, session }: OpenLocalFileProps) {
const a = await assemblyManager.waitForAssembly(assemblyConfig.name)
if (a) {
// @ts-expect-error MST type coercion problem?
addApolloTrackConfig(a)
session.addApolloTrackConfig(a)
notify(`Loaded GFF3 ${file.name}`, 'success')
} else {
notify(`Error loading GFF3 ${file.name}`, 'error')
Expand Down

0 comments on commit ce52e14

Please sign in to comment.