Skip to content

[@types/ember] add ember__template - #38571

Merged
RyanCavanaugh merged 3 commits into
DefinitelyTyped:masterfrom
scottkidder:ember__template
Oct 3, 2019
Merged

RyanCavanaugh merged 3 commits into
DefinitelyTyped:masterfrom
scottkidder:ember__template

Conversation

@scottkidder

@scottkidder scottkidder commented Sep 24, 2019 •

Copy link
Copy Markdown
Contributor

Moved htmlSafe and isHTMLSafe into @ember/template where the official docs say they are.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

Select one of these and delete the others:

If adding a new definition:

  • The package does not already provide its own types, or cannot have its .d.ts files generated via --declaration
  • Create it with dts-gen --dt, not by basing it on an existing project.
  • Represents shape of module/library correctly
  • tslint.json should be present and it shouldn't have any additional or disabling of rules. Just content as { "extends": "dtslint/dt.json" }. If for reason the some rule need to be disabled, disable it for that line using // tslint:disable-next-line [ruleName] and not for whole package so that the need for disabling can be reviewed.
  • tsconfig.json should have noImplicitAny, noImplicitThis, strictNullChecks, and strictFunctionTypes set to true.

@mike-north mike-north left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. New Definition This PR creates a new definition package. Merge:Express labels Sep 24, 2019
@typescript-bot

typescript-bot commented Sep 24, 2019 •

Copy link
Copy Markdown
Contributor

@scottkidder Thank you for submitting this PR!

Because this is a new definition, a DefinitelyTyped maintainer will be reviewing this PR in the next few days once the Travis CI build passes.

In the meantime, if the build fails or a merge conflict occurs, I'll let you know. Have a nice day!

@typescript-bot

Copy link
Copy Markdown
Contributor

A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped!

@typescript-bot

Copy link
Copy Markdown
Contributor

👋 Hi there! I’ve run some quick performance metrics against master and your PR. This is still an experiment, so don’t panic if I say something crazy! I’m still learning how to interpret these metrics.

Let’s review the numbers, shall we?

ember/v3

Comparison details for ember/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 138.3 146.5 +5.9%
Type count 53359 53359 0.0%
Assignability cache size 43499 43499 0.0%
Subtype cache size 1515 1515 0.0%
Identity cache size 65847 65847 0.0%
Language service
Samples taken 909 909 0.0%
Identifiers in tests 4508 4508 0.0%
getCompletionsAtPosition
    Mean duration (ms) 859.0 848.0 -1.3%
    Median duration (ms) 840.6 832.7 -0.9%
    Mean CV 4.8% 5.1% +5.8%
    Worst duration (ms) 5538.6 5448.4 -1.6%
    Worst identifier Ember Ember
getQuickInfoAtPosition
    Mean duration (ms) 770.1 765.6 -0.6%
    Median duration (ms) 732.8 731.5 -0.2%
    Mean CV 5.4% 5.7% +5.3%
    Worst duration (ms) 9407.1 9135.1 -2.9%
    Worst identifier A A

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__template/v3

These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to ember__template with its source on master.

Comparison details for ember__template/v3 📊
Batch compilation
Type count 9852
Assignability cache size 33874
Subtype cache size 1
Identity cache size 3
Language service measurements
Samples taken 19
Identifiers in tests 19
getCompletionsAtPosition
    Mean duration (ms) 393.3
    Median duration (ms) 390.7
    Mean CV 12.6%
    Worst duration (ms) 483.0
    Worst identifier SafeString
getQuickInfoAtPosition
    Mean duration (ms) 363.4
    Median duration (ms) 364.8
    Mean CV 13.6%
    Worst duration (ms) 394.0
    Worst identifier htmlSafe
System information
Node version v10.16.3
CPU count 2
CPU speed 2.294 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1055-azure

If you have any questions or comments about me, you can ping @andrewbranch. Have a nice day!

@jamescdavis jamescdavis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks pretty good, but I think we should move the SafeString type def here.

Comment thread types/ember__template/index.d.ts Resolved
Comment thread types/ember__template/index.d.ts Resolved
@jamescdavis

Copy link
Copy Markdown
Contributor

@scottkidder

Copy link
Copy Markdown
Contributor Author

@typescript-bot Please don't merge this yet

@scottkidder

scottkidder commented Sep 25, 2019 •

Copy link
Copy Markdown
Contributor Author

@jamescdavis I think I've properly moved -template/handlebars.d.ts into @ember/template. I'm not sure if the @deprecated comment on the exports in string are actually working.

Also I couldn't figure out a way to just re-export htmlSafe and isHTMLSafe from @ember/template in ember__string/index.d.ts

Comment thread types/ember__string/index.d.ts Resolved

@jamescdavis jamescdavis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great!

Comment thread types/ember/index.d.ts Resolved
Comment thread types/ember__string/index.d.ts Resolved
Comment thread types/ember__template/index.d.ts Resolved
@typescript-bot typescript-bot added Revision needed This PR needs code changes before it can be merged. and removed Owner Approved A listed owner of this package signed off on the pull request. Merge:Express labels Sep 25, 2019
@typescript-bot

Copy link
Copy Markdown
Contributor

@scottkidder One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. Thank you!

@typescript-bot

Copy link
Copy Markdown
Contributor

Updated numbers for you here from f0f112d:

ember-data/v3

Comparison details for ember-data/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 119.4 120.3 +0.7%
Type count 34618 34618 0.0%
Assignability cache size 42812 42812 0.0%
Subtype cache size 280 280 0.0%
Identity cache size 94 94 0.0%
Language service
Samples taken 1062 1062 0.0%
Identifiers in tests 1446 1446 0.0%
getCompletionsAtPosition
    Mean duration (ms) 737.6 733.9 -0.5%
    Median duration (ms) 734.4 730.1 -0.6%
    Mean CV 5.1% 5.4% +4.1%
    Worst duration (ms) 1016.6 1002.2 -1.4%
    Worst identifier inverse inverse
getQuickInfoAtPosition
    Mean duration (ms) 660.7 660.7 0.0%
    Median duration (ms) 650.6 651.1 +0.1%
    Mean CV 5.8% 6.2% +7.0%
    Worst duration (ms) 1046.9 1013.7 -3.2%
    Worst identifier hasMany assertType

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-feature-flags/v4

Comparison details for ember-feature-flags/v4 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 99.7 108.5 +8.8%
Type count 22398 22398 0.0%
Assignability cache size 36171 36171 0.0%
Subtype cache size 43 43 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 24 24 0.0%
Identifiers in tests 24 24 0.0%
getCompletionsAtPosition
    Mean duration (ms) 686.9 701.5 +2.1%
    Median duration (ms) 687.6 708.7 +3.1%
    Mean CV 7.0% 8.0% +15.3%
    Worst duration (ms) 768.2 769.9 +0.2%
    Worst identifier withFeature enableFeature
getQuickInfoAtPosition
    Mean duration (ms) 641.7 650.5 +1.4%
    Median duration (ms) 642.2 645.0 +0.4%
    Mean CV 9.2% 9.4% +2.3%
    Worst duration (ms) 741.2 791.5 +6.8%
    Worst identifier enableFeature assertType

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-mocha/v*

Comparison details for ember-mocha/v* 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 116.0 115.2 -0.7%
Type count 23547 23547 0.0%
Assignability cache size 36377 36377 0.0%
Subtype cache size 174 174 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 218 218 0.0%
Identifiers in tests 218 218 0.0%
getCompletionsAtPosition
    Mean duration (ms) 764.5 761.7 -0.4%
    Median duration (ms) 762.4 758.9 -0.5%
    Mean CV 10.0% 5.2% -47.8%
    Worst duration (ms) 908.0 856.6 -5.7%
    Worst identifier resolver after
getQuickInfoAtPosition
    Mean duration (ms) 714.5 675.3 -5.5%
    Median duration (ms) 708.1 669.2 -5.5%
    Mean CV 10.6% 6.9% -34.9%
    Worst duration (ms) 846.4 813.2 -3.9%
    Worst identifier setResolver resolver

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-modal-dialog/v3

Comparison details for ember-modal-dialog/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 100.8 103.0 +2.2%
Type count 22666 22666 0.0%
Assignability cache size 36391 36391 0.0%
Subtype cache size 49 49 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 23 23 0.0%
Identifiers in tests 23 23 0.0%
getCompletionsAtPosition
    Mean duration (ms) 724.0 723.4 -0.1%
    Median duration (ms) 720.2 722.6 +0.3%
    Mean CV 8.0% 7.0% -12.3%
    Worst duration (ms) 826.3 787.7 -4.7%
    Worst identifier wrapperClass renderInPlace
getQuickInfoAtPosition
    Mean duration (ms) 666.7 680.1 +2.0%
    Median duration (ms) 675.2 675.9 +0.1%
    Mean CV 9.2% 10.9% +18.8%
    Worst duration (ms) 711.0 838.0 +17.9%
    Worst identifier animatable MyOtherDialog

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-qunit/v3

Comparison details for ember-qunit/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 104.3 103.2 -1.1%
Type count 22738 22738 0.0%
Assignability cache size 36319 36319 0.0%
Subtype cache size 66 66 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 145 145 0.0%
Identifiers in tests 145 145 0.0%
getCompletionsAtPosition
    Mean duration (ms) 719.3 717.7 -0.2%
    Median duration (ms) 716.4 715.1 -0.2%
    Mean CV 6.3% 6.7% +6.7%
    Worst duration (ms) 828.1 847.7 +2.4%
    Worst identifier module assert
getQuickInfoAtPosition
    Mean duration (ms) 646.3 643.7 -0.4%
    Median duration (ms) 640.3 637.9 -0.4%
    Mean CV 8.1% 8.1% -0.6%
    Worst duration (ms) 815.3 765.5 -6.1%
    Worst identifier hooks module

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-resolver/v5

Comparison details for ember-resolver/v5 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 100.2 98.5 -1.7%
Type count 22419 22419 0.0%
Assignability cache size 36335 36335 0.0%
Subtype cache size 19 19 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 13 13 0.0%
Identifiers in tests 13 13 0.0%
getCompletionsAtPosition
    Mean duration (ms) 726.7 723.5 -0.4%
    Median duration (ms) 720.8 719.5 -0.2%
    Mean CV 8.3% 10.1% +21.9%
    Worst duration (ms) 872.7 869.5 -0.4%
    Worst identifier MyResolver MyResolver
getQuickInfoAtPosition
    Mean duration (ms) 652.7 677.7 +3.8%
    Median duration (ms) 649.6 659.7 +1.6%
    Mean CV 7.8% 10.8% +38.4%
    Worst duration (ms) 707.9 814.0 +15.0%
    Worst identifier Resolver Ember

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-test-helpers/v1

Comparison details for ember-test-helpers/v1 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 110.4 101.7 -7.9%
Type count 22510 22510 0.0%
Assignability cache size 36184 36184 0.0%
Subtype cache size 50 50 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 70 70 0.0%
Identifiers in tests 70 70 0.0%
getCompletionsAtPosition
    Mean duration (ms) 712.6 725.5 +1.8%
    Median duration (ms) 712.1 723.3 +1.6%
    Mean CV 7.6% 7.4% -2.3%
    Worst duration (ms) 823.6 855.1 +3.8%
    Worst identifier resumeTest promise
getQuickInfoAtPosition
    Mean duration (ms) 650.9 650.4 -0.1%
    Median duration (ms) 645.4 640.9 -0.7%
    Mean CV 9.3% 9.1% -2.2%
    Worst duration (ms) 774.8 771.0 -0.5%
    Worst identifier promise module

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember/v3

Comparison details for ember/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 138.8 136.3 -1.8%
Type count 53359 53359 0.0%
Assignability cache size 43499 43499 0.0%
Subtype cache size 1515 1515 0.0%
Identity cache size 65847 65847 0.0%
Language service
Samples taken 1012 1012 0.0%
Identifiers in tests 4508 4508 0.0%
getCompletionsAtPosition
    Mean duration (ms) 759.3 770.1 +1.4%
    Median duration (ms) 752.3 755.8 +0.5%
    Mean CV 5.6% 5.8% +3.1%
    Worst duration (ms) 4766.2 5184.9 +8.8%
    Worst identifier Ember Ember
getQuickInfoAtPosition
    Mean duration (ms) 683.4 701.0 +2.6%
    Median duration (ms) 656.7 674.1 +2.6%
    Mean CV 6.4% 6.8% +6.3%
    Worst duration (ms) 7930.7 8688.2 +9.6%
    Worst identifier A A

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__template/v3

These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to ember__template with its source on master.

Comparison details for ember__template/v3 📊
Batch compilation
Type count 9852
Assignability cache size 33874
Subtype cache size 1
Identity cache size 3
Language service measurements
Samples taken 19
Identifiers in tests 19
getCompletionsAtPosition
    Mean duration (ms) 358.4
    Median duration (ms) 360.5
    Mean CV 13.3%
    Worst duration (ms) 418.1
    Worst identifier a
getQuickInfoAtPosition
    Mean duration (ms) 331.9
    Median duration (ms) 326.0
    Mean CV 15.6%
    Worst duration (ms) 408.5
    Worst identifier regularString
System information
Node version v10.16.3
CPU count 2
CPU speed 2.294 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1055-azure

ember__string/v3

Comparison details for ember__string/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 78.3 80.5 +2.8%
Type count 9870 9864 -0.1%
Assignability cache size 33874 33872 0.0%
Subtype cache size 1 0 -100.0%
Identity cache size 3 3 0.0%
Language service
Samples taken 51 32 -37.3%
Identifiers in tests 51 32 -37.3%
getCompletionsAtPosition
    Mean duration (ms) 352.7 359.6 +2.0%
    Median duration (ms) 342.4 360.9 +5.4%
    Mean CV 14.9% 16.2% +8.5%
    Worst duration (ms) 476.1 411.2 -13.6%
    Worst identifier camelize loc
getQuickInfoAtPosition
    Mean duration (ms) 329.1 341.3 +3.7%
    Median duration (ms) 320.1 333.9 +4.3%
    Mean CV 15.2% 15.9% +5.0%
    Worst duration (ms) 406.4 456.9 +12.4%
    Worst identifier a dasherize

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__test-helpers/v*

Comparison details for ember__test-helpers/v* 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 98.9 98.3 -0.6%
Type count 22627 22627 0.0%
Assignability cache size 36212 36212 0.0%
Subtype cache size 47 47 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 111 111 0.0%
Identifiers in tests 111 111 0.0%
getCompletionsAtPosition
    Mean duration (ms) 674.9 684.1 +1.4%
    Median duration (ms) 674.0 681.0 +1.0%
    Mean CV 7.6% 7.2% -4.3%
    Worst duration (ms) 780.7 801.4 +2.6%
    Worst identifier allMessages messageElement
getQuickInfoAtPosition
    Mean duration (ms) 625.4 632.6 +1.1%
    Median duration (ms) 617.7 628.0 +1.7%
    Mean CV 8.1% 7.6% -5.8%
    Worst duration (ms) 722.8 719.2 -0.5%
    Worst identifier element element

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

@typescript-bot

typescript-bot commented Sep 27, 2019 •

Copy link
Copy Markdown
Contributor

@scottkidder The Travis CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@jamescdavis jamescdavis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intypes/ember/index.d.tsunder namespace Handlebars need to:

- class SafeString extends EmberStringHandlebarsNs.SafeString {}
+ class SafeString extends EmberTemplateHandlebarsNs.SafeString {}

@typescript-bot

Copy link
Copy Markdown
Contributor

Updated numbers for you here from d1fd801:

ember-data/v3

Comparison details for ember-data/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 125.2 127.3 +1.7%
Type count 34618 34615 0.0%
Assignability cache size 42812 42810 0.0%
Subtype cache size 280 280 0.0%
Identity cache size 94 94 0.0%
Language service
Samples taken 1062 1062 0.0%
Identifiers in tests 1446 1446 0.0%
getCompletionsAtPosition
    Mean duration (ms) 776.3 791.6 +2.0%
    Median duration (ms) 774.2 787.6 +1.7%
    Mean CV 5.4% 5.5% +2.2%
    Worst duration (ms) 1120.2 1089.1 -2.8%
    Worst identifier inverse inverse
getQuickInfoAtPosition
    Mean duration (ms) 699.9 713.0 +1.9%
    Median duration (ms) 687.6 702.5 +2.2%
    Mean CV 6.0% 6.1% +2.4%
    Worst duration (ms) 1110.8 1149.0 +3.4%
    Worst identifier polymorphic hasMany

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-feature-flags/v4

Comparison details for ember-feature-flags/v4 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 98.6 108.4 +9.9%
Type count 22398 22394 0.0%
Assignability cache size 36171 36169 0.0%
Subtype cache size 43 43 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 24 24 0.0%
Identifiers in tests 24 24 0.0%
getCompletionsAtPosition
    Mean duration (ms) 743.6 736.1 -1.0%
    Median duration (ms) 749.4 718.3 -4.2%
    Mean CV 6.8% 7.9% +15.6%
    Worst duration (ms) 831.9 839.7 +0.9%
    Worst identifier enableFeature enableFeature
getQuickInfoAtPosition
    Mean duration (ms) 692.4 696.1 +0.5%
    Median duration (ms) 706.7 694.4 -1.7%
    Mean CV 9.0% 10.2% +13.4%
    Worst duration (ms) 762.7 766.6 +0.5%
    Worst identifier assertType isEnabled

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-mocha/v*

Comparison details for ember-mocha/v* 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 113.7 108.5 -4.6%
Type count 23547 23543 0.0%
Assignability cache size 36377 36375 0.0%
Subtype cache size 174 174 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 218 218 0.0%
Identifiers in tests 218 218 0.0%
getCompletionsAtPosition
    Mean duration (ms) 801.9 792.4 -1.2%
    Median duration (ms) 797.6 786.9 -1.3%
    Mean CV 6.0% 6.0% -0.3%
    Worst duration (ms) 920.7 944.7 +2.6%
    Worst identifier beforeEach after
getQuickInfoAtPosition
    Mean duration (ms) 713.0 697.6 -2.2%
    Median duration (ms) 705.0 693.9 -1.6%
    Mean CV 6.8% 7.1% +4.7%
    Worst duration (ms) 843.7 860.8 +2.0%
    Worst identifier setupApplicationTest resolver

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-modal-dialog/v3

Comparison details for ember-modal-dialog/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 102.8 103.0 +0.2%
Type count 22666 22662 0.0%
Assignability cache size 36391 36389 0.0%
Subtype cache size 49 49 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 23 23 0.0%
Identifiers in tests 23 23 0.0%
getCompletionsAtPosition
    Mean duration (ms) 749.5 764.0 +1.9%
    Median duration (ms) 750.9 781.8 +4.1%
    Mean CV 7.4% 6.0% -17.9%
    Worst duration (ms) 821.1 805.6 -1.9%
    Worst identifier overlayClassNames overlayClassNames
getQuickInfoAtPosition
    Mean duration (ms) 706.8 702.0 -0.7%
    Median duration (ms) 701.5 694.4 -1.0%
    Mean CV 8.9% 9.0% +1.1%
    Worst duration (ms) 787.3 786.6 -0.1%
    Worst identifier animatable hasOverlay

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-qunit/v3

Comparison details for ember-qunit/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 103.1 101.6 -1.4%
Type count 22738 22734 0.0%
Assignability cache size 36319 36317 0.0%
Subtype cache size 66 66 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 145 145 0.0%
Identifiers in tests 145 145 0.0%
getCompletionsAtPosition
    Mean duration (ms) 748.3 742.8 -0.7%
    Median duration (ms) 741.7 738.0 -0.5%
    Mean CV 7.1% 7.1% +0.5%
    Worst duration (ms) 875.6 858.6 -1.9%
    Worst identifier module hooks
getQuickInfoAtPosition
    Mean duration (ms) 672.4 671.6 -0.1%
    Median duration (ms) 669.0 664.4 -0.7%
    Mean CV 10.1% 8.7% -13.3%
    Worst duration (ms) 835.2 786.9 -5.8%
    Worst identifier hooks setupTest

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-resolver/v5

Comparison details for ember-resolver/v5 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 97.9 101.0 +3.2%
Type count 22419 22415 0.0%
Assignability cache size 36335 36333 0.0%
Subtype cache size 19 19 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 13 13 0.0%
Identifiers in tests 13 13 0.0%
getCompletionsAtPosition
    Mean duration (ms) 726.4 722.5 -0.5%
    Median duration (ms) 717.0 726.3 +1.3%
    Mean CV 8.7% 7.5% -14.0%
    Worst duration (ms) 863.8 851.8 -1.4%
    Worst identifier MyResolver MyResolver
getQuickInfoAtPosition
    Mean duration (ms) 700.3 706.2 +0.8%
    Median duration (ms) 702.1 720.1 +2.6%
    Mean CV 11.1% 9.9% -10.1%
    Worst duration (ms) 792.3 800.6 +1.0%
    Worst identifier MyResolver Ember

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-test-helpers/v1

Comparison details for ember-test-helpers/v1 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 100.3 110.4 +10.1%
Type count 22510 22506 0.0%
Assignability cache size 36184 36182 0.0%
Subtype cache size 50 50 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 70 70 0.0%
Identifiers in tests 70 70 0.0%
getCompletionsAtPosition
    Mean duration (ms) 756.1 759.6 +0.5%
    Median duration (ms) 751.7 754.5 +0.4%
    Mean CV 8.5% 6.8% -20.1%
    Worst duration (ms) 878.4 856.4 -2.5%
    Worst identifier lookup resumeTest
getQuickInfoAtPosition
    Mean duration (ms) 688.9 682.5 -0.9%
    Median duration (ms) 680.5 675.3 -0.8%
    Mean CV 10.4% 8.6% -18.0%
    Worst duration (ms) 790.4 801.2 +1.4%
    Worst identifier test promise

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember/v3

Comparison details for ember/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 138.3 138.8 +0.3%
Type count 53359 53355 0.0%
Assignability cache size 43499 43497 0.0%
Subtype cache size 1515 1515 0.0%
Identity cache size 65847 65847 0.0%
Language service
Samples taken 909 940 +3.4%
Identifiers in tests 4508 4508 0.0%
getCompletionsAtPosition
    Mean duration (ms) 828.8 819.2 -1.2%
    Median duration (ms) 812.5 804.5 -1.0%
    Mean CV 5.7% 5.4% -4.3%
    Worst duration (ms) 5322.1 5363.0 +0.8%
    Worst identifier Ember Ember
getQuickInfoAtPosition
    Mean duration (ms) 746.5 732.6 -1.9%
    Median duration (ms) 709.7 704.4 -0.8%
    Mean CV 6.2% 6.0% -3.4%
    Worst duration (ms) 9082.1 8928.5 -1.7%
    Worst identifier A A

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__template/v3

These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to ember__template with its source on master.

Comparison details for ember__template/v3 📊
Batch compilation
Type count 9852
Assignability cache size 33874
Subtype cache size 1
Identity cache size 3
Language service measurements
Samples taken 19
Identifiers in tests 19
getCompletionsAtPosition
    Mean duration (ms) 397.9
    Median duration (ms) 401.0
    Mean CV 14.1%
    Worst duration (ms) 463.2
    Worst identifier htmlSafe
getQuickInfoAtPosition
    Mean duration (ms) 366.1
    Median duration (ms) 365.5
    Mean CV 11.4%
    Worst duration (ms) 402.9
    Worst identifier isHTMLSafe
System information
Node version v10.16.3
CPU count 2
CPU speed 2.294 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1059-azure

ember__string/v3

Comparison details for ember__string/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 77.9 69.6 -10.6%
Type count 9870 9864 -0.1%
Assignability cache size 33874 33872 0.0%
Subtype cache size 1 0 -100.0%
Identity cache size 3 3 0.0%
Language service
Samples taken 51 32 -37.3%
Identifiers in tests 51 32 -37.3%
getCompletionsAtPosition
    Mean duration (ms) 393.9 392.8 -0.3%
    Median duration (ms) 388.7 386.1 -0.7%
    Mean CV 14.7% 17.6% +19.7%
    Worst duration (ms) 497.5 504.7 +1.4%
    Worst identifier camelize dasherize
getQuickInfoAtPosition
    Mean duration (ms) 363.9 369.5 +1.5%
    Median duration (ms) 360.8 364.0 +0.9%
    Mean CV 14.4% 16.9% +17.4%
    Worst duration (ms) 451.1 471.4 +4.5%
    Worst identifier classify underscore

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__test-helpers/v*

Comparison details for ember__test-helpers/v* 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 98.0 99.3 +1.3%
Type count 22627 22623 0.0%
Assignability cache size 36212 36210 0.0%
Subtype cache size 47 47 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 111 111 0.0%
Identifiers in tests 111 111 0.0%
getCompletionsAtPosition
    Mean duration (ms) 717.6 711.7 -0.8%
    Median duration (ms) 716.5 710.5 -0.8%
    Mean CV 7.1% 7.5% +5.0%
    Worst duration (ms) 837.9 870.3 +3.9%
    Worst identifier messageElement findAll
getQuickInfoAtPosition
    Mean duration (ms) 656.4 650.9 -0.8%
    Median duration (ms) 650.0 651.6 +0.2%
    Mean CV 7.7% 8.1% +4.9%
    Worst duration (ms) 776.9 756.3 -2.6%
    Worst identifier allMessages element

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

@scottkidder

Copy link
Copy Markdown
Contributor Author

Thanks @jamescdavis! I apologize for the delay here..

@typescript-bot

Copy link
Copy Markdown
Contributor

🔔 @mike-north @jamescdavis - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate?

@jamescdavis jamescdavis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Thanks @scottkidder!

@typescript-bot

Copy link
Copy Markdown
Contributor

🔔 @mike-north - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate?

@typescript-bot

Copy link
Copy Markdown
Contributor

Updated numbers for you here from ca2a11e:

ember-data/v3

Comparison details for ember-data/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 128.3 123.5 -3.8%
Type count 34618 34618 0.0%
Assignability cache size 42812 42812 0.0%
Subtype cache size 280 280 0.0%
Identity cache size 94 94 0.0%
Language service
Samples taken 1062 1062 0.0%
Identifiers in tests 1446 1446 0.0%
getCompletionsAtPosition
    Mean duration (ms) 873.8 857.3 -1.9%
    Median duration (ms) 870.2 853.0 -2.0%
    Mean CV 4.6% 4.3% -5.2%
    Worst duration (ms) 1188.8 1186.7 -0.2%
    Worst identifier inverse inverse
getQuickInfoAtPosition
    Mean duration (ms) 787.1 773.1 -1.8%
    Median duration (ms) 775.5 759.7 -2.0%
    Mean CV 5.1% 5.1% -0.2%
    Worst duration (ms) 1253.0 1257.6 +0.4%
    Worst identifier hasMany hasMany

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-feature-flags/v4

Comparison details for ember-feature-flags/v4 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 109.0 98.9 -9.3%
Type count 22398 22398 0.0%
Assignability cache size 36171 36171 0.0%
Subtype cache size 43 43 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 24 24 0.0%
Identifiers in tests 24 24 0.0%
getCompletionsAtPosition
    Mean duration (ms) 792.7 808.5 +2.0%
    Median duration (ms) 803.4 807.3 +0.5%
    Mean CV 7.0% 7.9% +13.2%
    Worst duration (ms) 860.5 871.5 +1.3%
    Worst identifier withFeature features
getQuickInfoAtPosition
    Mean duration (ms) 732.6 744.6 +1.6%
    Median duration (ms) 737.5 739.4 +0.3%
    Mean CV 8.3% 9.0% +8.8%
    Worst duration (ms) 800.4 862.8 +7.8%
    Worst identifier someFeature features

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-mocha/v*

Comparison details for ember-mocha/v* 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 115.1 107.3 -6.7%
Type count 23547 23547 0.0%
Assignability cache size 36377 36377 0.0%
Subtype cache size 174 174 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 218 218 0.0%
Identifiers in tests 218 218 0.0%
getCompletionsAtPosition
    Mean duration (ms) 856.7 862.4 +0.7%
    Median duration (ms) 853.3 860.6 +0.9%
    Mean CV 7.0% 9.5% +36.1%
    Worst duration (ms) 1000.0 1011.9 +1.2%
    Worst identifier Ember setupApplicationTest
getQuickInfoAtPosition
    Mean duration (ms) 778.5 823.6 +5.8%
    Median duration (ms) 774.8 812.7 +4.9%
    Mean CV 7.9% 11.2% +42.5%
    Worst duration (ms) 931.0 1026.0 +10.2%
    Worst identifier resolver resolver

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-modal-dialog/v3

Comparison details for ember-modal-dialog/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 101.7 99.5 -2.1%
Type count 22666 22666 0.0%
Assignability cache size 36391 36391 0.0%
Subtype cache size 49 49 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 23 23 0.0%
Identifiers in tests 23 23 0.0%
getCompletionsAtPosition
    Mean duration (ms) 826.3 828.9 +0.3%
    Median duration (ms) 823.7 829.6 +0.7%
    Mean CV 8.2% 5.9% -28.0%
    Worst duration (ms) 908.6 910.0 +0.2%
    Worst identifier wrapperClassNames wrapperClassNames
getQuickInfoAtPosition
    Mean duration (ms) 783.5 743.8 -5.1%
    Median duration (ms) 775.0 743.3 -4.1%
    Mean CV 10.0% 8.3% -16.6%
    Worst duration (ms) 871.3 879.5 +0.9%
    Worst identifier wrapperClassNames animatable

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-qunit/v3

Comparison details for ember-qunit/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 101.7 103.9 +2.2%
Type count 22738 22738 0.0%
Assignability cache size 36319 36319 0.0%
Subtype cache size 66 66 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 145 145 0.0%
Identifiers in tests 145 145 0.0%
getCompletionsAtPosition
    Mean duration (ms) 820.1 811.3 -1.1%
    Median duration (ms) 817.3 806.8 -1.3%
    Mean CV 5.8% 6.9% +19.1%
    Worst duration (ms) 951.8 939.4 -1.3%
    Worst identifier Ember module
getQuickInfoAtPosition
    Mean duration (ms) 729.0 732.0 +0.4%
    Median duration (ms) 724.7 724.9 0.0%
    Mean CV 7.3% 8.4% +14.5%
    Worst duration (ms) 865.4 885.3 +2.3%
    Worst identifier hooks setupTest

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-resolver/v5

Comparison details for ember-resolver/v5 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 98.1 107.1 +9.2%
Type count 22419 22419 0.0%
Assignability cache size 36335 36335 0.0%
Subtype cache size 19 19 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 13 13 0.0%
Identifiers in tests 13 13 0.0%
getCompletionsAtPosition
    Mean duration (ms) 807.9 798.8 -1.1%
    Median duration (ms) 797.6 798.4 +0.1%
    Mean CV 9.4% 5.8% -38.2%
    Worst duration (ms) 979.4 836.9 -14.6%
    Worst identifier MyResolver MyResolver
getQuickInfoAtPosition
    Mean duration (ms) 750.5 737.1 -1.8%
    Median duration (ms) 738.8 732.0 -0.9%
    Mean CV 8.7% 10.1% +16.2%
    Worst duration (ms) 819.1 808.6 -1.3%
    Worst identifier MyResolver Ember

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember-test-helpers/v1

Comparison details for ember-test-helpers/v1 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 100.1 109.7 +9.5%
Type count 22510 22510 0.0%
Assignability cache size 36184 36184 0.0%
Subtype cache size 50 50 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 70 70 0.0%
Identifiers in tests 70 70 0.0%
getCompletionsAtPosition
    Mean duration (ms) 816.1 816.6 +0.1%
    Median duration (ms) 809.7 817.0 +0.9%
    Mean CV 6.8% 7.3% +8.4%
    Worst duration (ms) 946.7 983.6 +3.9%
    Worst identifier resumeTest resumeTest
getQuickInfoAtPosition
    Mean duration (ms) 737.9 747.0 +1.2%
    Median duration (ms) 730.4 735.9 +0.8%
    Mean CV 9.4% 9.5% +1.3%
    Worst duration (ms) 910.3 896.4 -1.5%
    Worst identifier module test

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember/v3

Comparison details for ember/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 145.0 154.6 +6.6%
Type count 53362 53362 0.0%
Assignability cache size 43489 43489 0.0%
Subtype cache size 1516 1516 0.0%
Identity cache size 65847 65847 0.0%
Language service
Samples taken 905 905 0.0%
Identifiers in tests 4504 4504 0.0%
getCompletionsAtPosition
    Mean duration (ms) 885.2 890.8 +0.6%
    Median duration (ms) 866.1 874.5 +1.0%
    Mean CV 5.3% 5.4% +1.9%
    Worst duration (ms) 5627.3 5660.6 +0.6%
    Worst identifier Ember Ember
getQuickInfoAtPosition
    Mean duration (ms) 796.5 805.8 +1.2%
    Median duration (ms) 760.3 767.3 +0.9%
    Mean CV 5.8% 6.2% +6.4%
    Worst duration (ms) 9463.1 9445.7 -0.2%
    Worst identifier A A

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__template/v3

These typings are for a package that doesn’t yet exist on master, so I don’t have anything to compare against yet! In the future, I’ll be able to compare PRs to ember__template with its source on master.

Comparison details for ember__template/v3 📊
Batch compilation
Type count 9852
Assignability cache size 33874
Subtype cache size 1
Identity cache size 3
Language service measurements
Samples taken 19
Identifiers in tests 19
getCompletionsAtPosition
    Mean duration (ms) 409.3
    Median duration (ms) 417.3
    Mean CV 14.1%
    Worst duration (ms) 473.9
    Worst identifier a
getQuickInfoAtPosition
    Mean duration (ms) 380.5
    Median duration (ms) 385.1
    Mean CV 13.5%
    Worst duration (ms) 407.1
    Worst identifier SafeString
System information
Node version v10.16.3
CPU count 2
CPU speed 2.397 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
CPU Architecture x64
Memory 6.8 GiB
Platform linux
Release 4.15.0-1059-azure

ember__string/v3

Comparison details for ember__string/v3 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 79.8 80.3 +0.7%
Type count 9870 9864 -0.1%
Assignability cache size 33874 33872 0.0%
Subtype cache size 1 0 -100.0%
Identity cache size 3 3 0.0%
Language service
Samples taken 51 32 -37.3%
Identifiers in tests 51 32 -37.3%
getCompletionsAtPosition
    Mean duration (ms) 424.4 419.2 -1.2%
    Median duration (ms) 421.8 413.5 -2.0%
    Mean CV 15.7% 17.5% +10.9%
    Worst duration (ms) 567.1 533.6 -5.9%
    Worst identifier camelize w
getQuickInfoAtPosition
    Mean duration (ms) 390.4 396.6 +1.6%
    Median duration (ms) 385.1 391.4 +1.7%
    Mean CV 13.8% 17.1% +23.2%
    Worst duration (ms) 464.3 502.9 +8.3%
    Worst identifier camelize dasherize

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

ember__test-helpers/v*

Comparison details for ember__test-helpers/v* 📊
master #38571 diff
Batch compilation
Memory usage (MiB) 99.8 100.8 +1.0%
Type count 22627 22627 0.0%
Assignability cache size 36212 36212 0.0%
Subtype cache size 47 47 0.0%
Identity cache size 43 43 0.0%
Language service
Samples taken 111 111 0.0%
Identifiers in tests 111 111 0.0%
getCompletionsAtPosition
    Mean duration (ms) 788.1 781.4 -0.8%
    Median duration (ms) 785.9 776.6 -1.2%
    Mean CV 6.6% 8.5% +28.2%
    Worst duration (ms) 922.1 885.1 -4.0%
    Worst identifier findAll findAll
getQuickInfoAtPosition
    Mean duration (ms) 728.0 744.1 +2.2%
    Median duration (ms) 721.0 742.1 +2.9%
    Mean CV 6.9% 8.8% +27.2%
    Worst duration (ms) 904.5 904.1 0.0%
    Worst identifier click click

It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place.

@mike-north mike-north left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, thanks!

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Merge:Express labels Oct 1, 2019
@RyanCavanaugh

Copy link
Copy Markdown
Member

Good to merge then?

@mike-north

Copy link
Copy Markdown
Contributor

Good to merge then?

Yes

@RyanCavanaugh
RyanCavanaugh merged commit 4131598 into DefinitelyTyped:master Oct 3, 2019
@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

@typescript-bot

Copy link
Copy Markdown
Contributor

I just published @types/[email protected] to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Definition This PR creates a new definition package. Owner Approved A listed owner of this package signed off on the pull request. Revision needed This PR needs code changes before it can be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants