Skip to content

Commit

Permalink
Fix some tsc errors for the main thread assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 13, 2020
1 parent 845c7dc commit 4fff527
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/core/assemblyManager/assembly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function loadAssemblyData(self: Assembly) {
}
async function loadAssemblyReaction(
props: ReturnType<typeof loadAssemblyData> | undefined,
signal: AbortSignal,
_signal: AbortSignal,
) {
if (!props) {
return
Expand All @@ -321,7 +321,7 @@ async function loadAssemblyReaction(
sequenceAdapterConfig.type,
)
const adapter = new dataAdapterType.AdapterClass(sequenceAdapterConfig)
const adapterRegions = await adapter.getRegions()
const adapterRegions = (await adapter.getRegions()) as Region[]

const adapterRegionsWithAssembly = adapterRegions.map(adapterRegion => {
const { refName } = adapterRegion
Expand All @@ -336,7 +336,10 @@ async function loadAssemblyReaction(
const refNameAliasAdapter = new refAliasAdapterType.AdapterClass(
refNameAliasesAdapterConfig,
)
const refNameAliasesList = await refNameAliasAdapter.getRefNameAliases()
const refNameAliasesList = (await refNameAliasAdapter.getRefNameAliases()) as {
refName: string
aliases: string[]
}[]

refNameAliasesList.forEach(({ refName, aliases }) => {
aliases.forEach(alias => {
Expand Down

0 comments on commit 4fff527

Please sign in to comment.