Skip to content

Commit

Permalink
fix: [#1523] fix type-related issues after Typescript upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
recurser committed Jul 11, 2024
1 parent 86d2fbb commit 32928db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/services/Converter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { maxBy, uniqBy } from 'lodash'
import Promise from 'bluebird'
import Bluebird from 'bluebird'

import * as untypedIdentities from '@lib/identities'
import { Converter } from '@lib/converters'
Expand Down Expand Up @@ -38,7 +38,7 @@ export const converterCandidates = async (
inputString: string,
): Promise<Converter[]> => {
const candidates = (
await Promise.all(
await Bluebird.all(
identities.map((identity): Promise<Candidate[]> => {
return new Promise((resolve, _reject) => {
let confidence: number
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"skipLibCheck": true,
"strict": true,
"strictNullChecks": true,
"target": "es5",
"target": "esnext",
"paths": {
"@components/*": [
"src/components/*"
Expand Down

0 comments on commit 32928db

Please sign in to comment.