Skip to content

Commit

Permalink
Update dependency typescript to ^4.1.2 (#15258)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Felix Becker <felix.b@outlook.com>
  • Loading branch information
3 people committed Nov 20, 2020
1 parent 56ccaf4 commit a22ea45
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
5 changes: 4 additions & 1 deletion client/shared/src/api/client/services/location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { CodeEditorWithPartialModel } from './viewerService'
import { DocumentFeatureProviderRegistry } from './registry'
import { MaybeLoadingResult, LOADING } from '@sourcegraph/codeintellify'
import { finallyReleaseProxy } from '../api/common'
import { isNot, allOf, isExactly } from '../../../util/types'

/**
* Function signature for retrieving related locations given a location (e.g., definition, implementation, and type
Expand Down Expand Up @@ -154,7 +155,9 @@ export function getLocationsFromProviders<
).pipe(
map(locationsFromProviders => ({
isLoading: locationsFromProviders.some(locations => locations === LOADING),
result: locationsFromProviders.filter<L[]>(Array.isArray).flat(),
result: locationsFromProviders
.filter(allOf(isNot(isExactly('loading' as const)), isNot(isExactly(null))))
.flat(),
}))
)
)
Expand Down
4 changes: 2 additions & 2 deletions client/shared/src/api/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('observableFromAsyncIterable', () => {
)

const values: number[] = []
await new Promise(complete => observable.subscribe({ next: value => values.push(value), complete }))
await new Promise<void>(complete => observable.subscribe({ next: value => values.push(value), complete }))
expect(values).toStrictEqual([1, 2, 3, 4, 5])
})

Expand All @@ -152,7 +152,7 @@ describe('observableFromAsyncIterable', () => {
const observable = observableFromAsyncIterable(test())

const collectedValues: number[] = []
await new Promise(resolve => {
await new Promise<void>(resolve => {
const subscription = observable.subscribe({
next: value => {
collectedValues.push(value)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
"ts-graphql-plugin": "^1.12.1",
"ts-morph": "^8.1.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.3",
"typescript": "^4.1.2",
"utc-version": "^2.0.2",
"web-ext": "^4.2.0",
"webpack": "^4.44.1",
Expand Down
13 changes: 8 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2804,8 +2804,7 @@
integrity sha512-KWxkyphmlwam8kfYPSmoitKQRMGQCsr1ZRmNZgijT7ABKaVyk/+I5ezt2J213tM04Hi0vyg4L7iH1VCkNvm2Jw==

"@sourcegraph/extension-api-types@link:client/packages/@sourcegraph/extension-api-types":
version "0.0.0"
uid ""
version "2.1.0"

"@sourcegraph/prettierrc@^3.0.3":
version "3.0.3"
Expand Down Expand Up @@ -20970,8 +20969,7 @@ sourcegraph@^24.0.0:
integrity sha512-PlGvkdBy5r5iHdKAVNY/jsPgWb3oY+2iAdIQ3qR83UHhvBFVgoctDAnyfJ1eMstENY3etBWtAJ8Kleoar3ecaA==

"sourcegraph@link:client/packages/sourcegraph-extension-api":
version "0.0.0"
uid ""
version "24.7.0"

space-separated-tokens@^1.0.0:
version "1.1.2"
Expand Down Expand Up @@ -22552,7 +22550,12 @@ typedarray@^0.0.6:
resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.0.3, typescript@~4.0.2:
typescript@^4.1.2:
version "4.1.2"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==

typescript@~4.0.2:
version "4.0.3"
resolved "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5"
integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==
Expand Down

0 comments on commit a22ea45

Please sign in to comment.