Skip to content

Use function that doesn't return unknown type - #54713

Merged
Gabriela Araujo Britto (gabritto) merged 2 commits into
mainfrom
gabritto/fix54596
Jun 20, 2023
Merged

Use function that doesn't return unknown type#54713
Gabriela Araujo Britto (gabritto) merged 2 commits into
mainfrom
gabritto/fix54596

Conversation

@gabritto

Copy link
Copy Markdown
Member

When refactoring #54596, I introduced a bug by using a function that returns unknownType when a property or index signature is missing. Instead, we need to use a function that returns undefined when the property or index signature is missing.
Fixes the failing package qrcode on the nightly DT run (https://typescript.visualstudio.com/TypeScript/_build/results?buildId=155426&view=logs&j=71179031-6417-5a2f-3d87-af6fce2011e4&t=69c46c41-df19-593d-5ed2-0b9c514993a3).

@gabritto

Copy link
Copy Markdown
MemberAuthor

@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the diff-based user code test suite on this PR at eba78e4. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the perf test suite on this PR at eba78e4. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the parallelized Definitely Typed test suite on this PR at eba78e4. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the extended test suite on this PR at eba78e4. You can monitor the build here.

@typescript-bot

TypeScript Bot (typescript-bot) commented Jun 20, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the diff-based top-repos suite on this PR at eba78e4. You can monitor the build here.

Update: The results are in!

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the user test suite comparing main and refs/pull/54713/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Unknown failure"
  • 1 instance of "Package install failed"

Otherwise...

Something interesting changed - please have a look.

Details

rxjs-src

/mnt/ts_downloads/rxjs-src/build.sh

  • [NEW] error TS2428: All declarations of 'WeakMap' must have identical type parameters.
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-54713/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
  • [MISSING] error TS2428: All declarations of 'WeakMap' must have identical type parameters.
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.collection.d.ts(63,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.iterable.d.ts(162,11)
    • /home/vsts/work/1/s/typescript-main/lib/lib.es2015.symbol.wellknown.d.ts(140,11)

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto)
The results of the perf run you requested are in!

Here they are:

Compiler

Comparison Report - main..54713
Metricmain54713DeltaBestWorstp-value
Angular - node (v18.10.0, x64)
Memory used366,176k (± 0.01%)366,171k (± 0.01%)~366,130k366,227kp=0.810 n=6
Parse Time3.41s (± 0.34%)3.42s (± 0.76%)~3.39s3.45sp=1.000 n=6
Bind Time1.11s (± 0.94%)1.11s (± 0.88%)~1.10s1.12sp=0.673 n=6
Check Time8.80s (± 0.37%)8.79s (± 0.44%)~8.74s8.84sp=0.628 n=6
Emit Time7.41s (± 0.46%)7.43s (± 0.97%)~7.38s7.56sp=1.000 n=6
Total Time20.73s (± 0.21%)20.75s (± 0.44%)~20.66s20.89sp=1.000 n=6
Compiler-Unions - node (v18.10.0, x64)
Memory used191,799k (± 1.18%)191,787k (± 1.20%)~190,819k196,488kp=0.298 n=6
Parse Time1.51s (± 0.50%)1.51s (± 1.02%)~1.50s1.54sp=0.796 n=6
Bind Time0.77s (± 0.97%)0.77s (± 0.67%)~0.76s0.77sp=0.241 n=6
Check Time9.51s (± 0.79%)9.45s (± 0.97%)~9.36s9.62sp=0.127 n=6
Emit Time2.76s (± 1.62%)2.75s (± 0.61%)~2.73s2.77sp=0.870 n=6
Total Time14.54s (± 0.59%)14.48s (± 0.62%)~14.40s14.64sp=0.335 n=6
Monaco - node (v18.10.0, x64)
Memory used346,613k (± 0.01%)346,600k (± 0.01%)~346,587k346,640kp=0.378 n=6
Parse Time2.58s (± 0.53%)2.59s (± 1.31%)~2.55s2.63sp=0.935 n=6
Bind Time1.00s (± 0.51%)1.01s (± 0.63%)~1.00s1.02sp=0.091 n=6
Check Time7.15s (± 0.32%)7.15s (± 0.43%)~7.10s7.17sp=0.868 n=6
Emit Time4.22s (± 0.24%)4.25s (± 1.18%)~4.20s4.34sp=0.244 n=6
Total Time14.95s (± 0.29%)14.99s (± 0.49%)~14.90s15.07sp=0.377 n=6
TFS - node (v18.10.0, x64)
Memory used300,653k (± 0.00%)300,650k (± 0.00%)~300,634k300,668kp=0.936 n=6
Parse Time2.06s (± 1.50%)2.05s (± 0.99%)~2.02s2.08sp=1.000 n=6
Bind Time1.13s (± 0.72%)1.14s (± 0.66%)~1.13s1.15sp=0.206 n=6
Check Time6.64s (± 0.43%)6.65s (± 0.64%)~6.59s6.70sp=0.806 n=6
Emit Time3.86s (± 0.61%)3.86s (± 0.97%)~3.81s3.90sp=0.809 n=6
Total Time13.69s (± 0.28%)13.71s (± 0.62%)~13.57s13.80sp=0.748 n=6
material-ui - node (v18.10.0, x64)
Memory used481,044k (± 0.00%)481,032k (± 0.00%)~480,997k481,056kp=0.689 n=6
Parse Time3.10s (± 0.17%)3.10s (± 0.44%)~3.08s3.11sp=0.351 n=6
Bind Time0.90s (± 0.57%)0.91s (± 0.82%)~0.90s0.92sp=0.069 n=6
Check Time16.85s (± 0.60%)16.79s (± 0.70%)~16.67s16.98sp=0.470 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time20.86s (± 0.46%)20.79s (± 0.56%)~20.66s20.98sp=0.423 n=6
xstate - node (v18.10.0, x64)
Memory used563,199k (± 0.03%)563,231k (± 0.03%)~563,078k563,510kp=0.810 n=6
Parse Time3.83s (± 0.35%)3.82s (± 0.79%)~3.78s3.86sp=0.625 n=6
Bind Time1.61s (± 0.65%)1.62s (± 0.75%)~1.61s1.64sp=0.282 n=6
Check Time2.79s (± 0.64%)2.79s (± 0.29%)~2.78s2.80sp=0.567 n=6
Emit Time0.08s (± 0.00%)0.08s (± 0.00%)~0.08s0.08sp=1.000 n=6
Total Time8.32s (± 0.38%)8.31s (± 0.36%)~8.28s8.35sp=0.572 n=6
Angular - node (v16.17.1, x64)
Memory used365,533k (± 0.01%)365,578k (± 0.01%)~365,527k365,646kp=0.298 n=6
Parse Time3.56s (± 0.15%)3.56s (± 0.63%)~3.54s3.59sp=0.934 n=6
Bind Time1.18s (± 0.54%)1.18s (± 0.54%)~1.17s1.19sp=1.000 n=6
Check Time9.60s (± 0.56%)9.58s (± 0.33%)~9.53s9.62sp=0.686 n=6
Emit Time7.90s (± 0.52%)7.88s (± 0.22%)~7.87s7.91sp=0.224 n=6
Total Time22.24s (± 0.38%)22.21s (± 0.16%)~22.16s22.25sp=0.518 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used193,676k (± 0.92%)193,112k (± 0.67%)~192,532k195,760kp=0.810 n=6
Parse Time1.58s (± 1.35%)1.60s (± 0.47%)~1.59s1.61sp=0.117 n=6
Bind Time0.83s (± 0.62%)0.83s (± 0.49%)~0.82s0.83sp=0.595 n=6
Check Time10.15s (± 1.03%)10.21s (± 0.52%)~10.17s10.31sp=0.228 n=6
Emit Time3.00s (± 1.20%)3.00s (± 0.58%)~2.97s3.02sp=1.000 n=6
Total Time15.56s (± 0.62%)15.64s (± 0.43%)~15.58s15.76sp=0.228 n=6
Monaco - node (v16.17.1, x64)
Memory used345,863k (± 0.00%)345,882k (± 0.00%)~345,861k345,898kp=0.066 n=6
Parse Time2.73s (± 0.60%)2.71s (± 0.23%)-0.02s (- 0.85%)2.70s2.72sp=0.020 n=6
Bind Time1.08s (± 0.91%)1.09s (± 0.75%)~1.08s1.10sp=0.282 n=6
Check Time7.83s (± 0.51%)7.84s (± 0.47%)~7.81s7.90sp=0.747 n=6
Emit Time4.43s (± 0.47%)4.44s (± 0.43%)~4.42s4.47sp=0.627 n=6
Total Time16.08s (± 0.35%)16.08s (± 0.22%)~16.04s16.14sp=1.000 n=6
TFS - node (v16.17.1, x64)
Memory used300,002k (± 0.01%)299,987k (± 0.01%)~299,968k300,013kp=0.297 n=6
Parse Time2.17s (± 0.79%)2.17s (± 0.92%)~2.16s2.21sp=0.676 n=6
Bind Time1.23s (± 1.11%)1.23s (± 0.42%)~1.23s1.24sp=0.796 n=6
Check Time7.31s (± 0.35%)7.30s (± 0.37%)~7.26s7.33sp=0.687 n=6
Emit Time4.37s (± 1.06%)4.33s (± 0.65%)~4.30s4.37sp=0.170 n=6
Total Time15.07s (± 0.41%)15.04s (± 0.27%)~14.99s15.09sp=0.294 n=6
material-ui - node (v16.17.1, x64)
Memory used480,336k (± 0.01%)480,319k (± 0.01%)~480,278k480,393kp=0.574 n=6
Parse Time3.26s (± 0.51%)3.25s (± 0.27%)~3.24s3.26sp=0.273 n=6
Bind Time0.94s (± 0.43%)0.94s (± 0.00%)~0.94s0.94sp=0.405 n=6
Check Time17.86s (± 0.52%)17.91s (± 1.20%)~17.75s18.31sp=0.575 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time22.06s (± 0.43%)22.10s (± 0.95%)~21.95s22.50sp=0.630 n=6
xstate - node (v16.17.1, x64)
Memory used560,637k (± 0.03%)560,553k (± 0.01%)~560,514k560,594kp=0.936 n=6
Parse Time3.99s (± 0.41%)3.99s (± 0.26%)~3.97s4.00sp=0.462 n=6
Bind Time1.75s (± 0.48%)1.76s (± 0.47%)~1.76s1.78sp=0.062 n=6
Check Time3.06s (± 0.41%)3.05s (± 0.25%)~3.04s3.06sp=0.328 n=6
Emit Time0.09s (± 0.00%)0.09s (± 0.00%)~0.09s0.09sp=1.000 n=6
Total Time8.90s (± 0.35%)8.89s (± 0.12%)~8.88s8.91sp=0.935 n=6
Angular - node (v14.21.3, x64)
Memory used359,562k (± 0.01%)359,549k (± 0.01%)~359,495k359,596kp=0.748 n=6
Parse Time3.67s (± 0.76%)3.66s (± 0.65%)~3.63s3.69sp=0.687 n=6
Bind Time1.22s (± 0.67%)1.21s (± 0.69%)~1.20s1.22sp=1.000 n=6
Check Time10.06s (± 0.36%)10.07s (± 0.17%)~10.05s10.09sp=0.373 n=6
Emit Time8.33s (± 1.01%)8.31s (± 0.36%)~8.26s8.35sp=0.630 n=6
Total Time23.27s (± 0.51%)23.26s (± 0.10%)~23.23s23.29sp=0.936 n=6
Compiler-Unions - node (v14.21.3, x64)
Memory used188,480k (± 0.69%)187,926k (± 0.02%)~187,866k187,960kp=0.173 n=6
Parse Time1.61s (± 0.32%)1.61s (± 0.39%)~1.60s1.62sp=0.386 n=6
Bind Time0.84s (± 0.61%)0.84s (± 0.65%)~0.84s0.85sp=0.640 n=6
Check Time10.31s (± 0.49%)10.35s (± 0.28%)~10.32s10.39sp=0.228 n=6
Emit Time3.14s (± 1.50%)3.13s (± 0.63%)~3.11s3.15sp=0.686 n=6
Total Time15.91s (± 0.49%)15.93s (± 0.23%)~15.89s15.99sp=1.000 n=6
Monaco - node (v14.21.3, x64)
Memory used341,056k (± 0.00%)341,044k (± 0.00%)~341,030k341,060kp=0.127 n=6
Parse Time2.80s (± 0.57%)2.80s (± 0.76%)~2.77s2.83sp=0.869 n=6
Bind Time1.11s (± 0.80%)1.11s (± 0.88%)~1.10s1.12sp=0.798 n=6
Check Time8.23s (± 0.56%)8.23s (± 0.21%)~8.21s8.25sp=0.371 n=6
Emit Time4.69s (± 0.55%)4.67s (± 0.56%)~4.65s4.72sp=0.256 n=6
Total Time16.82s (± 0.45%)16.81s (± 0.21%)~16.78s16.86sp=1.000 n=6
TFS - node (v14.21.3, x64)
Memory used295,151k (± 0.00%)295,152k (± 0.00%)~295,144k295,159kp=0.936 n=6
Parse Time2.39s (± 0.61%)2.40s (± 0.43%)~2.38s2.41sp=0.616 n=6
Bind Time1.07s (± 1.50%)1.07s (± 0.51%)~1.06s1.07sp=0.855 n=6
Check Time7.63s (± 0.36%)7.62s (± 0.76%)~7.55s7.69sp=0.573 n=6
Emit Time4.33s (± 0.60%)4.33s (± 0.45%)~4.29s4.34sp=0.935 n=6
Total Time15.43s (± 0.14%)15.41s (± 0.29%)~15.37s15.47sp=0.335 n=6
material-ui - node (v14.21.3, x64)
Memory used475,882k (± 0.01%)475,883k (± 0.01%)~475,840k475,934kp=1.000 n=6
Parse Time3.32s (± 0.80%)3.32s (± 0.50%)~3.30s3.35sp=1.000 n=6
Bind Time1.00s (± 0.75%)1.00s (± 0.82%)~0.99s1.01sp=0.306 n=6
Check Time18.85s (± 0.77%)18.81s (± 0.62%)~18.66s18.97sp=0.873 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time23.17s (± 0.69%)23.13s (± 0.54%)~22.98s23.29sp=0.810 n=6
xstate - node (v14.21.3, x64)
Memory used549,643k (± 0.00%)549,638k (± 0.00%)~549,619k549,665kp=0.810 n=6
Parse Time4.22s (± 0.30%)4.22s (± 0.36%)~4.19s4.23sp=0.677 n=6
Bind Time1.67s (± 0.31%)1.67s (± 0.63%)~1.65s1.68sp=0.794 n=6
Check Time3.16s (± 0.55%)3.14s (± 0.69%)~3.11s3.17sp=0.076 n=6
Emit Time0.09s (± 0.00%)0.09s (± 0.00%)~0.09s0.09sp=1.000 n=6
Total Time9.13s (± 0.27%)9.10s (± 0.13%)-0.03s (- 0.35%)9.09s9.12sp=0.015 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-148-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v18.10.0, x64)
  • node (v16.17.1, x64)
  • node (v14.21.3, x64)
Scenarios
  • Angular - node (v18.10.0, x64)
  • Angular - node (v16.17.1, x64)
  • Angular - node (v14.21.3, x64)
  • Compiler-Unions - node (v18.10.0, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Compiler-Unions - node (v14.21.3, x64)
  • Monaco - node (v18.10.0, x64)
  • Monaco - node (v16.17.1, x64)
  • Monaco - node (v14.21.3, x64)
  • TFS - node (v18.10.0, x64)
  • TFS - node (v16.17.1, x64)
  • TFS - node (v14.21.3, x64)
  • material-ui - node (v18.10.0, x64)
  • material-ui - node (v16.17.1, x64)
  • material-ui - node (v14.21.3, x64)
  • xstate - node (v18.10.0, x64)
  • xstate - node (v16.17.1, x64)
  • xstate - node (v14.21.3, x64)
BenchmarkNameIterations
Current547136
Baselinemain6

TSServer

Comparison Report - main..54713
Metricmain54713DeltaBestWorstp-value
Compiler-UnionsTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,543ms (± 0.70%)2,544ms (± 0.51%)~2,533ms2,569msp=0.873 n=6
Req 2 - geterr5,539ms (± 0.40%)5,539ms (± 0.44%)~5,506ms5,567msp=0.810 n=6
Req 3 - references338ms (± 1.17%)337ms (± 0.63%)~335ms341msp=1.000 n=6
Req 4 - navto287ms (± 0.48%)287ms (± 1.31%)~283ms294msp=0.803 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo85ms (± 0.96%)85ms (± 0.65%)~84ms85msp=0.859 n=6
CompilerTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,639ms (± 0.92%)2,649ms (± 0.52%)~2,634ms2,673msp=0.873 n=6
Req 2 - geterr4,283ms (± 0.32%)4,289ms (± 0.70%)~4,248ms4,325msp=0.575 n=6
Req 3 - references349ms (± 0.49%)348ms (± 0.65%)~344ms350msp=0.415 n=6
Req 4 - navto286ms (± 1.05%)287ms (± 0.36%)~286ms289msp=0.164 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo64ms (± 4.17%)67ms (± 5.25%)~62ms70msp=0.155 n=6
xstateTSServer - node (v18.10.0, x64)
Req 1 - updateOpen3,086ms (± 0.33%)3,086ms (± 0.53%)~3,068ms3,117msp=0.688 n=6
Req 2 - geterr1,550ms (± 0.81%)1,560ms (± 0.74%)~1,542ms1,573msp=0.173 n=6
Req 3 - references112ms (± 1.87%)113ms (± 0.93%)~111ms114msp=0.285 n=6
Req 4 - navto358ms (± 0.41%)357ms (± 0.33%)~355ms358msp=0.250 n=6
Req 5 - completionInfo count2,864 (± 0.00%)2,864 (± 0.00%)~2,8642,864p=1.000 n=6
Req 5 - completionInfo369ms (± 2.18%)375ms (± 2.66%)~362ms386msp=0.419 n=6
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen2,647ms (± 0.33%)2,656ms (± 0.57%)~2,636ms2,676msp=0.298 n=6
Req 2 - geterr5,994ms (± 0.46%)5,999ms (± 0.22%)~5,980ms6,016msp=0.936 n=6
Req 3 - references353ms (± 0.64%)352ms (± 0.65%)~350ms356msp=0.572 n=6
Req 4 - navto288ms (± 2.06%)287ms (± 0.87%)~283ms289msp=0.809 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo91ms (± 2.13%)92ms (± 1.50%)~89ms93msp=0.491 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen2,827ms (± 0.63%)2,831ms (± 0.54%)~2,802ms2,846msp=0.575 n=6
Req 2 - geterr4,656ms (± 0.37%)4,657ms (± 0.34%)~4,640ms4,680msp=1.000 n=6
Req 3 - references363ms (± 0.53%)364ms (± 0.30%)~363ms366msp=0.452 n=6
Req 4 - navto283ms (± 0.70%)284ms (± 0.37%)~282ms285msp=0.358 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo67ms (± 0.94%)68ms (± 0.81%)~67ms68msp=0.201 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen3,220ms (± 0.56%)3,219ms (± 0.61%)~3,196ms3,240msp=0.810 n=6
Req 2 - geterr1,728ms (± 0.96%)1,718ms (± 0.32%)~1,710ms1,726msp=0.298 n=6
Req 3 - references126ms (± 7.00%)126ms (± 6.15%)~119ms141msp=0.933 n=6
Req 4 - navto343ms (± 1.26%)344ms (± 1.24%)~339ms351msp=0.567 n=6
Req 5 - completionInfo count2,864 (± 0.00%)2,864 (± 0.00%)~2,8642,864p=1.000 n=6
Req 5 - completionInfo409ms (± 1.40%)410ms (± 1.22%)~403ms416msp=0.809 n=6
Compiler-UnionsTSServer - node (v14.21.3, x64)
Req 1 - updateOpen2,776ms (± 0.25%)2,777ms (± 0.86%)~2,742ms2,809msp=0.936 n=6
Req 2 - geterr6,174ms (± 0.33%)6,185ms (± 0.74%)~6,142ms6,259msp=1.000 n=6
Req 3 - references364ms (± 0.38%)365ms (± 0.67%)~362ms369msp=0.459 n=6
Req 4 - navto288ms (± 0.36%)290ms (± 1.49%)~286ms298msp=1.000 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo102ms (± 2.77%)101ms (± 3.78%)~94ms104msp=1.000 n=6
CompilerTSServer - node (v14.21.3, x64)
Req 1 - updateOpen2,971ms (± 0.44%)2,966ms (± 0.36%)~2,947ms2,977msp=0.810 n=6
Req 2 - geterr4,542ms (± 0.65%)4,551ms (± 0.41%)~4,514ms4,565msp=0.872 n=6
Req 3 - references373ms (± 0.89%)370ms (± 0.50%)~368ms373msp=0.084 n=6
Req 4 - navto297ms (± 0.41%)298ms (± 0.30%)~297ms299msp=0.362 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo78ms (± 2.91%)76ms (± 0.68%)~76ms77msp=0.247 n=6
xstateTSServer - node (v14.21.3, x64)
Req 1 - updateOpen3,470ms (± 0.59%)3,458ms (± 1.12%)~3,382ms3,489msp=0.936 n=6
Req 2 - geterr1,839ms (± 0.51%)1,840ms (± 0.38%)~1,828ms1,847msp=0.689 n=6
Req 3 - references152ms (± 7.11%)149ms (± 7.13%)~138ms161msp=0.748 n=6
Req 4 - navto406ms (± 1.62%)409ms (± 1.96%)~400ms419msp=0.575 n=6
Req 5 - completionInfo count2,864 (± 0.00%)2,864 (± 0.00%)~2,8642,864p=1.000 n=6
Req 5 - completionInfo439ms (± 1.26%)434ms (± 1.88%)~418ms442msp=0.375 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-148-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v18.10.0, x64)
  • node (v16.17.1, x64)
  • node (v14.21.3, x64)
Scenarios
  • Compiler-UnionsTSServer - node (v18.10.0, x64)
  • Compiler-UnionsTSServer - node (v16.17.1, x64)
  • Compiler-UnionsTSServer - node (v14.21.3, x64)
  • CompilerTSServer - node (v18.10.0, x64)
  • CompilerTSServer - node (v16.17.1, x64)
  • CompilerTSServer - node (v14.21.3, x64)
  • xstateTSServer - node (v18.10.0, x64)
  • xstateTSServer - node (v16.17.1, x64)
  • xstateTSServer - node (v14.21.3, x64)
BenchmarkNameIterations
Current547136
Baselinemain6

Startup

Comparison Report - main..54713
Metricmain54713DeltaBestWorstp-value
tsc-startup - node (v16.17.1, x64)
Execution time141.34ms (± 0.18%)141.15ms (± 0.15%)-0.18ms (- 0.13%)140.39ms143.20msp=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time220.31ms (± 0.19%)220.04ms (± 0.20%)-0.27ms (- 0.12%)219.06ms227.07msp=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time221.79ms (± 0.17%)221.49ms (± 0.17%)-0.29ms (- 0.13%)220.66ms230.69msp=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time203.61ms (± 0.17%)203.39ms (± 0.16%)-0.22ms (- 0.11%)202.65ms208.29msp=0.000 n=600
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-148-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • tsc-startup - node (v16.17.1, x64)
  • tsserver-startup - node (v16.17.1, x64)
  • tsserverlibrary-startup - node (v16.17.1, x64)
  • typescript-startup - node (v16.17.1, x64)
BenchmarkNameIterations
Current547136
Baselinemain6

Developer Information:

Download Benchmark

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the top-repos suite comparing main and refs/pull/54713/merge:

Everything looks good!

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Gabriela Araujo Britto (@gabritto), the results of running the DT tests are ready.
There were interesting changes:

Main only errors:

Package: qrcode
Error:

Error: /home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint-runner/DefinitelyTyped/types/qrcode/test/qrcode-tests.ts:51:1
ERROR: 51:1 expect TypeScript@local compile error: Unused '@ts-expect-error' directive.
ERROR: 54:1 expect TypeScript@local compile error: Unused '@ts-expect-error' directive.
ERROR: 59:1 expect TypeScript@local compile error: Unused '@ts-expect-error' directive.
ERROR: 62:1 expect TypeScript@local compile error: Unused '@ts-expect-error' directive.
at testTypesVersion (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint-runner/node_modules/@definitelytyped/dtslint/dist/index.js:194:15)
at async runTests (/home/vsts/work/1/s/DefinitelyTyped-tools/packages/dtslint-runner/node_modules/@definitelytyped/dtslint/dist/index.js:151:9)

You can check the log here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good although I'd recommend moving the new function next to the existing one.

Comment threadsrc/compiler/checker.ts Outdated
const filtered = contains(include, Ternary.False) ? getUnionType(types.filter((_, i) => include[i])) : target;
return filtered.flags & TypeFlags.Never ? target : filtered;

function getTypeOfPropertyOrIndexSignatureOfType(type: Type, name: __String): Type | undefined {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be less confusing to have this next to getTypeOfPropertyOrIndexSignatureOfType.
Well, initially more confusing for the reader, because they'll have to ask "Why are there two here?". But they'll be aware that there are two nearly identical things that need to be used in different situations.

@gabritto
Gabriela Araujo Britto (gabritto) deleted the gabritto/fix54596 branch June 20, 2023 20:47
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gabritto@typescript-bot@sandersn