Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove highlight.js typings #49293

Merged
merged 5 commits into from Nov 9, 2020

Conversation

WilsonGramer
Copy link
Contributor

@WilsonGramer WilsonGramer commented Nov 1, 2020

highlight.js provides its own types: https://github.com/highlightjs/highlight.js/blob/master/types/index.d.ts

Because the markdown-it and remarkable type definitions depend on these typings, this pull request cannot be merged until microsoft/DefinitelyTyped-tools#151 has been merged.


Please fill in this template.

  • 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 YOUR_PACKAGE_NAME.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).

If removing a declaration:

  • Delete the package's directory.
  • Add it to notNeededPackages.json.

highlight.js provides its own typings as of 10.1.0.
@typescript-bot typescript-bot added this to Needs Author Action in New Pull Request Status Board Nov 1, 2020
@WilsonGramer WilsonGramer marked this pull request as ready for review November 1, 2020 04:40
@typescript-bot typescript-bot added The CI failed When GH Actions fails Popular package This PR affects a popular package (as counted by NPM download counts). Edits Infrastructure labels Nov 1, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented Nov 1, 2020

@WilsonGramer Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

This PR touches some part of DefinitelyTyped infrastructure, so a DT maintainer will need to review it. This is rare — did you mean to do this?

4 packages in this PR

Code Reviews

Because this PR edits multiple packages, it can be merged once it's reviewed by a DT maintainer.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ A DT maintainer needs to approve changes which affect DT infrastructure (notNeededPackages.json)

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 49293,
  "author": "WilsonGramer",
  "headCommitAbbrOid": "ddbed2b",
  "headCommitOid": "ddbed2ba1624fedc367756e343cd2bb5b9386593",
  "mergeIsRequested": false,
  "stalenessInDays": 0,
  "lastPushDate": "2020-11-08T17:08:58.000Z",
  "reopenedDate": "2020-11-01T04:40:26.000Z",
  "lastCommentDate": "2020-11-06T01:09:01.000Z",
  "maintainerBlessed": false,
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": null,
      "files": [
        {
          "path": "notNeededPackages.json",
          "kind": "infrastructure"
        }
      ],
      "owners": null,
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "highlight.js",
      "files": [
        {
          "path": "types/highlight.js/highlight.js-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/highlight.js/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/highlight.js/tsconfig.json",
          "kind": "package-meta",
          "suspect": "couldn't fetch contents"
        },
        {
          "path": "types/highlight.js/tslint.json",
          "kind": "package-meta",
          "suspect": "couldn't fetch contents"
        },
        {
          "path": "types/highlight.js/v7/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/highlight.js/v7/tsconfig.json",
          "kind": "package-meta",
          "suspect": "couldn't fetch contents"
        },
        {
          "path": "types/highlight.js/v7/tslint.json",
          "kind": "package-meta",
          "suspect": "couldn't fetch contents"
        }
      ],
      "owners": [
        "nikeee",
        "sourrust",
        "joshuakgoldberg"
      ],
      "addedOwners": [],
      "deletedOwners": [
        "nikeee",
        "sourrust",
        "joshuakgoldberg"
      ],
      "popularityLevel": "Popular"
    },
    {
      "name": "highlightjs",
      "files": [
        {
          "path": "types/highlightjs/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/highlightjs/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/highlightjs/tslint.json",
          "kind": "package-meta",
          "suspect": "not the required form and not moving towards it"
        }
      ],
      "owners": [
        "ffflorian"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    },
    {
      "name": "markdown-it",
      "files": [
        {
          "path": "types/markdown-it/package.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "plantain-00",
        "rapropos",
        "duduluu"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    },
    {
      "name": "remarkable",
      "files": [
        {
          "path": "types/remarkable/package.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "makepost",
        "chigix",
        "bios21"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "ffflorian",
      "date": "2020-11-08T22:17:11.000Z",
      "isMaintainer": false
    },
    {
      "type": "approved",
      "reviewer": "peterblazejewicz",
      "date": "2020-11-08T20:56:37.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

typescript-bot commented Nov 1, 2020

🔔 @nikeee @sourrust @JoshuaKGoldberg @ffflorian @plantain-00 @rapropos @duduluu @makepost @chigix @bios21 — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot
Copy link
Contributor

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

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

@ffflorian
Copy link
Collaborator

Okay but do the official types also support importing highlightjs (which leads to the same package)? If not, please leave the types for highlightjs where they are and edit them instead to import highlight.js. Thanks!

@WilsonGramer
Copy link
Contributor Author

@ffflorian Sure, I just added them back. Thanks for pointing that out!

@typescript-bot
Copy link
Contributor

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

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

@nikeee
Copy link
Contributor

nikeee commented Nov 2, 2020

There may still be issues with the types that ship with hljs itself.

highlightjs/highlight.js#2603

Don't know the status of that.

@typescript-bot typescript-bot added Edits multiple packages Check Config Changes a module config files labels Nov 6, 2020
@typescript-bot
Copy link
Contributor

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

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

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

These typings are for a version of highlightjs that doesn’t yet exist on master, so I’ve compared them with v9.12.

9.12@master 10.1 in #49293 diff
Batch compilation
Memory usage (MiB) 39.4 70.4 +78.6%
Type count 2154 10568 +391%
Assignability cache size 104 3501 +3266% 🚨
Language service
Samples taken 17 17 0%
Identifiers in tests 17 17 0%
getCompletionsAtPosition
    Mean duration (ms) 89.4 83.4 -6.7%
    Mean CV 25.1% 21.8%
    Worst duration (ms) 117.0 105.0 -10.3%
    Worst identifier code code
getQuickInfoAtPosition
    Mean duration (ms) 82.1 80.1 -2.3%
    Mean CV 18.5% 16.9% -8.8%
    Worst duration (ms) 101.9 91.0 -10.7%
    Worst identifier value code

Looks like there were a couple significant differences—take a look at assignability cache size to make sure everything looks ok.

@typescript-bot typescript-bot added the Perf: Worse typescript-bot determined that this PR has a negative impact on compilation performance. label Nov 6, 2020
@typescript-bot
Copy link
Contributor

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

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

@WilsonGramer
Copy link
Contributor Author

WilsonGramer commented Nov 6, 2020

I just updated the dependencies using old versions of highlight.js and I'm not getting type errors anymore. Since remarkable uses the typings for highlight.js@^9.7.0, I added @typings/highlight.js to the list of dependencies under types/remarkable/package.json. Now I get this error:

Error: In package.json: Dependency @types/highlight.js not in the allowed dependencies list.
Don't use a 'package.json' for @types dependencies unless this package relies on
an old version of types that have since been moved to the source repo.
For example, if package *P* used to have types on Definitely Typed at @types/P,
but now has its own types, a dependent package *D* will need to use package.json
to refer to @types/P if it relies on old versions of P's types.
In this case, please make a pull request to microsoft/DefinitelyTyped-tools adding @types/P to `packages/definitions-parser/allowedPackageJsonDependencies.txt`.

I just submitted microsoft/DefinitelyTyped-tools#158, so I'll wait for that to be merged and then run the tests again!

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Nov 8, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Action in New Pull Request Status Board Nov 8, 2020
@typescript-bot
Copy link
Contributor

@peterblazejewicz Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot
Copy link
Contributor

Updated numbers for you here from c4734a5.

highlightjs/v10.1

These typings are for a version of highlightjs that doesn’t yet exist on master, so I’ve compared them with v9.12.

Comparison details for highlightjs/10.1 📊
9.12@master 10.1 in #49293 diff
Batch compilation
Memory usage (MiB) 39.2 74.5 +90.0%
Type count 2154 10568 +391%
Assignability cache size 104 3501 +3266% 🚨
Language service
Samples taken 17 17 0%
Identifiers in tests 17 17 0%
getCompletionsAtPosition
    Mean duration (ms) 87.4 83.6 -4.3%
    Mean CV 23.2% 21.7%
    Worst duration (ms) 116.5 109.5 -6.0%
    Worst identifier code value
getQuickInfoAtPosition
    Mean duration (ms) 78.7 79.8 +1.5%
    Mean CV 15.8% 16.8% +6.5%
    Worst duration (ms) 90.2 85.8 -4.9%
    Worst identifier value value

Looks like there were a couple significant differences—take a look at assignability cache size to make sure everything looks ok.

markdown-it/v10.0

Comparison details for markdown-it/10.0 📊
master #49293 diff
Batch compilation
Memory usage (MiB) 79.4 81.5 +2.6%
Type count 10779 10779 0%
Assignability cache size 3516 3516 0%
Language service
Samples taken 1008 1008 0%
Identifiers in tests 1008 1008 0%
getCompletionsAtPosition
    Mean duration (ms) 364.4 365.9 +0.4%
    Mean CV 9.0% 8.9%
    Worst duration (ms) 513.8 503.7 -2.0%
    Worst identifier pos match
getQuickInfoAtPosition
    Mean duration (ms) 372.0 374.2 +0.6%
    Mean CV 8.9% 8.9% +0.8%
    Worst duration (ms) 541.1 498.2 -7.9%
    Worst identifier length length

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

Copy link
Member

@peterblazejewicz peterblazejewicz left a comment

Choose a reason for hiding this comment

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

LGTM!
@WilsonGramer thx!
:shipit:

@typescript-bot typescript-bot added the Other Approved This PR was reviewed and signed-off by a community member. label Nov 8, 2020
@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Nov 8, 2020
@weswigham weswigham merged commit 20eb949 into DefinitelyTyped:master Nov 9, 2020
@typescript-bot typescript-bot removed this from Needs Maintainer Action in New Pull Request Status Board Nov 9, 2020
@typescript-bot
Copy link
Contributor

I just published @types/highlightjs@10.1.0 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/markdown-it@10.0.3 to npm.

@typescript-bot
Copy link
Contributor

I just published @types/remarkable@1.7.6 to npm.

alloy pushed a commit that referenced this pull request Nov 14, 2020
* Updated ReactNative NativeEventEmitter

NativeEventEmitter and NativeModule were missing definitions.
- Resolved inability to create/extend NativeEventEmitter in Typescript

* 🤖 Update CODEOWNERS

* 🤖 Merge PR #49389 [text-to-svg] Add definitions by @mormahr

* Add definitions for text-to-svg

* [text-to-svg] use class template structure

* [text-to-svg] Add anchor option defaults

* 🤖 Merge PR #49334 [bull-arena] Remove bull-arena heavy dependencies by @bogdan

* 🤖 Merge PR #49434 update firefox-webext-browser to v82 and fix a bunch of stuff by @jsmnbom

* Update to 82.0 and fix many issues

* Fix tab width so it's 4 like before

* 🤖 Merge PR #49402 Add types for the eev package by @borisStanojevic

* Added types for eev package

* Added types for eev package

* Added types for eev package

* Added types for eev package

* Added types for eev package

* Added types for eev package

* Added types for eev package

* Added types for eev package

Co-authored-by: boris.stanojevic <boris.stanojevic@doctorcareanywhere.com>

* 🤖 Merge PR #48870 Add types for Skilja package (array chunker) by @stscoundrel

* Add types for Skilja package

* Update types/skilja/skilja-tests.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* Update types/skilja/index.d.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* [node] Catch up assert typesVersions <= 3.6 (#49363)

* 🤖 Merge PR #49126 Add types for branca by @BrettIRL

* Add types for tuupola/branca-js

* Decode never returns Error

Co-authored-by: Brett <brett@pop-os.localdomain>

* Create definition for use-synced-local-storage@1.0 (#49426)

* remove(diff2html): remove package (#49424)

Ships as proper TypeScript from version 3.0.0 onwards:

https://github.com/rtfpessoa/diff2html/releases/tag/3.0.0

Thanks!

* 🤖 Merge PR #49381 Updated prosemirror-model to include `hasRequiredAttrs` to `NodeType` by @biw

* Added `hasRequiredAttrs` to `NodeType`

`hasRequiredAttrs` is listed [in the reference](https://prosemirror.net/docs/ref/#model.NodeType) but not the typescript .d.ts

* Update index.d.ts

* Added semi

* IITC (Ingress Intel Total Conversation) types (#49423)

* Add IITC (Ingress Intel Total Conversation) types

* Fix  @types dependencies

* Fix dependencies

no idea how to keep old version dependencies
old iitc 0.26 use old leaflet 0.7

* Remove highlight.js typings (#49293)

* Remove highlight.js typings

highlight.js provides its own typings as of 10.1.0.

* Add back 'highlightjs' typings that point to highlight.js

* Fix dependencies using DT typings for old versions of highlight.js

* Add old @types/highlight.js to remarkable test dependencies

* Add old @types/highlight.js to markdown-it test dependencies

* Update index.d.ts (#49230)

Add missing type to react-cytoscape

* Add new types: Cookie clicker (#49418)

* Add intermediate definitions (@types/cookiclicker)

* cookieclicker: Polish the typings

* cookieclicker: Add temple minigame

* cookieclicker: Add grimoire minigame

* cookieclicker: Complete the typings

* cookeiclicker: Update registerHook

* cookieclicker: Emergency tab fix

* cookieclicker: Add minor changes

* cookieclicker: Update small mistakes

* cookieclicker: Add bob to owner list

* remove(comment-json): remove definition (#49414)

`comment-json` ships its own definition starting 2.4.1:

https://github.com/kaelzhang/node-comment-json/blob/420a7fc91a7f0a4ab565ad0e329cff110b624edb/README.md#L58

Thanks!

* toastify-js types definition (#49411)

* Add types for @rails/ujs (#49395)

* add typing for @rails/ujs

* fix wrong return types

* respect configs of rails__activestorage

* add features typings

* buttonClickSelector can be represented with internal type

* delegate can accept document or window (not only Element)

* add test cases

* fix offenses alerted by dtslint

* prefer unknown (rather than any)

* add test case for Rails.$

* unnest directories so that import path looks more like rails-ujs project structure

* npm-naming lint rule looks not needed actually

* autogenerated github url is wrong

* features/* are not exported

* Rails.confirm should return boolean

* enableElement has same params as disableElement

* AjaxOptions['data'] should be same as param of xhr.send()

* add options for Rails.ajax()

* fix: SelectorObject had a wrong type

* fix dtslint errors

* add abcang as a owner

Co-authored-by: abcang <abcang1015@gmail.com>

* fix sample code event name

* add test cases for internal methods

* test file should not use optional chaining for backward compatibility

* add more strict version of Rails.delegate() for event name intellisense

* this of handler should not be inferred, since it is decided by selector, not element

Co-authored-by: abcang <abcang1015@gmail.com>

* [koa-generic-session] Add the missing `cookie.overwite` field. (#48561)

See https://github.com/pillarjs/cookies#cookiesset-name--value---options-- for details.
This doc is referenced from the repo at https://github.com/koajs/generic-session#options.

The changes is one line of code and one line of test but running prettier adds a lot of minor diffs.

* update(mailparser): version bump and minor changes (#47743)

This commit:
- bumps version to latest major (which seems to be non breaking one):
nodemailer/mailparser@v2.8.1...v3.0.0
- simplifies DT by removing linter exclusion and applying required
  changes
- maintainer added

Thanks!

* update(useragent): v2.3 (#48286)

- minor verison bumpt
- defaults documented for constructors
- simplify package defintion (backwared compatible)
- maintainer added

3rd-Eden/useragent@2.2.1...master

Thanks!

* update(ratelimiter): version 3.4 update and other changes (#47955)

This introduces minor updates from 3.4, while at the same time exporting
types from the module:
- new creation options
- new properties in results
- version bump
- export types properly
- tests amended
- mantainer added

tj/node-ratelimiter@v2.1.1...v3.3.1#diff-168726dbe96b3ce427e7fedce31bb0bc

Thanks!

* update(js-beautify): re-export types for CJS and  minor rversion bump (#46933)

I cannot re-use the module types in proper CJS code, this change is
expected to be backward compatible (no code rewwrite required), while
allowing to import required details in CJS ecosystem:

- re-exported types for CJS consumption without rewriting global export
  code
- tests amended
- minor version bump
- mantainer added

beautifier/js-beautify@v1.11.0...v1.13.0

Thanks!

* feat(wait-on): add options for 5.2 (#48535)

* types for simpleddp (#49003)

* simpleddp package

* compatibility updates

* handle rest params

* handle rest params for subscription

* handle rest params

* some more generics

* subscribe optional rest

Co-authored-by: Aleksandras Kamyšanskis <akamysanskis@solutionlab.net>

* 🤖 Merge PR #48905 [@types/chroma-js] Add missing color.mix method by @tremby

* [d3] Bump types to v6.1 (#49415)

* Added definitions for Common class (#49416)

* added type definitions for Common class

* edit for linter

* small edits to random and choose methods

* Add request argument in handleUpgrade (#49422)

ref: websockets/ws@7d39f19

* Add isDisabled to IndicatorProps (#49428)

Essentially this is JedWatson/react-select#4219 but for IndicatorProps

* add options for Container.wait (#49430)

* 🤖 Merge PR #46576 Rewrite (thereby fix) types for express-session (second attempt) by @HoldYourWaffle

* Rewrite (thereby fix) types for express-session

Supersedes #41809

Fixes #4126
Fixes #16480
Fixes #18527
Fixes #18529

* Fix broken downstream typings

* Fix broken notNeededPackages.json edit

* 🤖 Merge PR #49439 update(toastify-js): UMD support, missing options by @peterblazejewicz

This commit:
- adds support for UMD usage (module or global script)
- rename 'args' to 'options' - as per original package usage and
  documentation
- 'avatar' option
- 'reposition' static-like method support
- tests amended
- mantainer added

https://github.com/apvarun/toastify-js/blob/master/src/toastify.js

Thanks!

* 🤖 Merge PR #49435 Correct the type of dat.gui __folders by @danvk

* 🤖 Merge PR #48493 [nodemailer-mailgun-transport]: add alias apiKey by @zgid123

* 🤖 Merge PR #48961 [alexa-sdk] Remove types by @jablko

* 🤖 Merge PR #49165 Updates type definitions from sharp 0.26.0 to support animated GIF and WEBP formats. by @ShaneSP

* Update type definitions for sharp 0.26.0

* Adds comment describing that using GIF options for output image requires libvips custom compilation

* Re-ran
> definitely-typed@0.0.3 lint /Users/shanesteele-pardue/Documents/open-source/DefinitelyTyped
> dtslint types "sharp" after adding comments.

Co-authored-by: Shane Steele-Pardue <shane.steele-pardue@onecowstanding.com>

* 🤖 Merge PR #49437 [scriptable-ios]: change addSpacer to accept no parameters by @schl3ck

* 🤖 Merge PR #49445 [@brainhubeu/react-carousel] fix: DotsProps missing className by @Semigradsky

* 🤖 Merge PR #49449 [mapbox-gl] map.addImage() supports ImageBitmap as image by @fishead

* update mapbox-gl types

map.addImage() supports `ImageBitmap` as image.

https://github.com/mapbox/mapbox-gl-js/blob/v1.12.0/src/ui/map.js#L1567-L1568

* chore(mapbox-gl): add tests

* add missing semicolon

* 🤖 Merge PR #49452 [mapbox-gl] Add Expression type to *-sort-key properties by @tengl

* 🤖 Merge PR #49392 fundamental-react: update new Tile type and tests by @ThomHuynh

* draft new Tile type and tests

* remove outdated Tileprop 'active' and refactor class Tile to FC

* remove faulty changes

* fix format for linter

Co-authored-by: Luu-Quan Thom Huynh <luu-quan.thom.huynh@sap.com>

* 🤖 Merge PR #49432 Update snowpack-env to fix bug introduced in last change by @FredKSchott

* Update index.d.ts

* Update index.d.ts

* Update snowpack-env-tests.ts

* 🤖 Merge PR #49451 cookieclicker: Fix minor mistakes by @TheGLander

* cookieclicker: Fix minor mistakes

* cookieclicker: Add new tests

* cookieclicker: Fix Mod interface mistake

* fix(js-beautify): correct exported lib types (#49457)

* fix(js-beautify): correct exported lib types
last PR that landed (#46933) caused a regression. see discussion at thread.

* fix: adjust gulp-json-editor to new types

* add types for similarity (#49460)

* add type definitions for base64id (#49454)

* Add umami type definitions (#49453)

* Add umami type definitions

* Fix forgotten author link in umami definition

* Type definitions for rrdir 8.2 (#49448)

* add rrdir

* remove it

Co-authored-by: nzhang4 <nzhang4@stubhub.com>

* [mongoose] add missing option "overwrite" to interface QueryFindOneAndUpdateOptions (#49047)

* [mongoose] add missing overwrite option to interface QueryFindOneAndUpdateOptions

* update version

* [gatsby-transformer-remark] Add types (#49443)

* [office-js] [office-js-preview] (Outlook) Body.prependAsync behavior (#49466)

* 🤖 Merge PR #49262 [creditkey-js] Add a typed version of the creditkey-js package by @TristanTaradel

* credit-key files including tests

* fixing tslint errors

* made file prettier

* added comment to top of file

* added header to match other projects

* change tslint extend

* remove patch version

* update definitions by line

* prettified tests file

* removed dom and changed tests to exclude console logging, also changed to directly export instead of creating a module

* Update iitc header (#49472)

It's now on npm, so doesn't need the non-npm marker

* fix(express): point `express.static` to `serve-static` with generic as `express.Response` (#48964)

* 🤖 Merge PR #49391 [@types/carbon-components-react] Update "value" type of NumberInput to contain empty string by @baeharam

Signed-off-by: mazino <mazino@spoqa.com>

* Add `dispose` methods for Mocha (#49382)

* Reorganize methods.

* Add dispose methods to Mocha.

* 🤖 Merge PR #49302 add jrf-pip npm package by @jirufik

* add jrf-pip npm package

* refactor type any to T in jrf-pip

* Support flashScrollIndicators on react native ScrollView (#49463)

* 🤖 Merge PR #49483 react-date-range: Add classNames prop to CommonCalendarProps by @janizde

* add classNames prop to CommonCalendarProps

* bump version number

* remove patch from version number

* remove trailing whitespace

* README: update and sync TOC & headers (#49489)

* 🤖 Merge PR #49270 Add sphere-engine package by @Eggbertx

* Add sphere-engine types

* Add required tsconfig keys and documentation URLs

* Fix dtlint errors

* Rename sphere-engine to sphere-engine-browser

* Clarify that sphere-engine is a non-npm package

* re-add version to index.d.ts

* disable npm-naming

* replace tabs with spaces

* Move 1.x API into subdirectory

* Remove unnecessary comments, use standard API version

Co-authored-by: Eggbertx <eggbertx@users.noreply.github.com>

* Add type definitions for arrive.js (#49488)

* Add type definitions for arrive.js

* Use Element instead of HTMLElement

* update(stopword): v1 update (#48666)

- new languages added
- version bump
- support for browser via global script export
- naming aligned with package README
- mantainer added

fergiemcdowall/stopword@v0.3.5...v1.0.3

Thanks!

* [applicationinsights-js] Remove types (#49496)

* Remove self from Definitions for `type/youtube` (#49493)

* fix(braintree): updates bt dropin web definitions (#49491)

The braintree-web-drop-in definitions were a little bit incomplete and
also wrong in some cases. All types are available in BT's JSDoc:

https://braintree.github.io/braintree-web-drop-in/docs/current/module-braintree-web-drop-in.html#.create

* [@types/fs-extra] match types for create and ensure (#49490)

* fix(fs-extra): match types for create and ensure

* chore: linting

* chore: linting

* [webpack] pitch loader has a this context (#49482)

* Update type definitions for rrdir 8.2 (#49474)

* add rrdir

* remove it

* Update index.d.ts

Co-authored-by: nzhang4 <nzhang4@stubhub.com>

* webpack: added asset types (#49471)

* chore(webpack): added asset types

* support string in loaderCallback sourcemap

* 🤖 Merge PR #49477 Updated onChange parameters to include selection key by @charliemday

* Add ContainerProps to react-select exports

* Combined container exports

* Updated onChange parameter type

* Fixed test and extended onChangeProps

* 🤖 Merge PR #49455 [@entropy/winston-elasticsearch-apm] feat: adding types to @entropy/winston-elasticsearch-apm by @michael-vasyliv

* feat: adding types to @entropy/winston-elasticsearch-apm

* refactor: removing extra rule

* fix: removing elastic-apm-node from notNeededPackages.json

* refactor: removing an extra package

* Revert "fix: removing elastic-apm-node from notNeededPackages.json"

This reverts commit 6b6faaf.

* build: trigger build

* refactor: removing extra comment

* refactor: changing order of packages in package.json

* refactor: adding `export =`

* refactor: removing extra rule

* refactor: removing empty object

* 🤖 Merge PR #49481 [next-auth] add `scope?` on `ProviderLinkedInOptions` by @kulbon

Co-authored-by: Konrad Kuliś <konrad@krakweb.pl>

* 🤖 Merge PR #48206 [@types/jsx-pdf] add missing SVG props by @k-yle

* add missing SVG props

* add QR code and Fragment

* 🤖 Merge PR #49248 Update awsProvider.d.ts in serverless by @BaptistG

Add metrics to the ApiGateway Interface

* react-native-wol types (#49509)

* Add definition of react-native-wol

* Wrapped function in module declaration.

* Added tests and rewrote to make tests pass

* 🤖 Merge PR #49425 [server-destroy] Fix types and update tests by @xapdkop

* Fix types and update tests

Use net.Server instead of http.Server (since http.Server based on net.Server)

This will allow to use package not only for http.Server but also for http2.Http2Server and http2.Http2SecureServer (and any other servers based on net.Server)

* Correct `callback` type

It should be the same as the `callback` parameter of  net.Server.close

* Revert the declaration version to 1.0

Should be the same as the version of server-destroy

* Updated IndicatorState Props (#49505)

* `react-aria-menubutton`: correct defaults (#49506)

* @mapbox/polyline: represent latlngs as [number, number] (#48644)

* [@types/kurento-client] Add classes, events and complexTypes and fix bugs (#47756)

* Update @types/kurento-client adding a new classes and some callbacks to existent classes

* Update kurento-client reordering objects based on dependencies

* Update kurento-client fixing WebRtcEndpoint event listener

* Update kurento-client introducing BaseEvent and Event type and updating EventEmitter.on()'s type annotations

* Updating kurento-client applying prettier to kurento-client-test.ts

* Update kurento-client reordering complexTypes

* Update kurento-client adding tests

* Fixed @types/async whilst type def (#47649)

Co-authored-by: Itay Levy <itayl@ironsrc.com>

* feat(@babel/template): Update to v7.4 (#47140)

* 🤖 Merge PR #49479 fix(express-session): remove unnecessary needed guard for "initialized" sessions by @simllll

* 🤖 Merge PR #49476 Type Definition for beautify 0.0.8 by @Edward-Roshan

* add definition

* update

* update

seems should be like this

Co-authored-by: nzhang4 <nzhang4@stubhub.com>

* 🤖 Merge PR #49468 Natural: Add missing tokenizer definitions by @thatcort

* Add missing tokenizers

* Add AggressiveTokenizerNl

* Natural: Add test for SentenceTokenizer

Co-authored-by: Brian Cort <brian@pienso.com>

* 🤖 Merge PR #49333 Add barcodes types to the node onfleet types by @jtassin

* 🤖 Merge PR #48893 Update Serial types to line up with Chrome 86.0.4240.75 changes by @maciejmrozinski

* 🤖 Merge PR #49540 [@types/ffmpeg] Fix ffmpeg typos, add documentation and tests by @vladpirlog

* ✏️ Fix types/ffmpeg typos

* 📝 Add documentation for functions

* ✅ Add tests for type definitions

* 🤖 Merge PR #49543 fix(express-mysql-session): Update MySQLStoreClass to inherit expressSession.Store by @Aki-7

express-session.Store

* Resolved pullrequest comments 49560 #1 and #2

* Ran Prittier on both react-native and test

Co-authored-by: TS Bot <bot@typescriptlang.org>
Co-authored-by: Moritz Mahringer <me@moritzmahringer.de>
Co-authored-by: Bogdan Gusiev <agresso@gmail.com>
Co-authored-by: Jasmin Bom <jsmnbom@gmail.com>
Co-authored-by: Boris Stanojevic <borisstanojevicfkkt@gmail.com>
Co-authored-by: boris.stanojevic <boris.stanojevic@doctorcareanywhere.com>
Co-authored-by: Sampo Silvennoinen <20028934+stscoundrel@users.noreply.github.com>
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
Co-authored-by: Jack Bates <jack@nottheoilrig.com>
Co-authored-by: Brett <brett@trademarktechnology.co.za>
Co-authored-by: Brett <brett@pop-os.localdomain>
Co-authored-by: Stanislav Termosa <termosa.stanislav@gmail.com>
Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
Co-authored-by: Ben Williams <ben@719ben.com>
Co-authored-by: McBen <viertelvor12@gmx.net>
Co-authored-by: Wilson Gramer <12683684+WilsonGramer@users.noreply.github.com>
Co-authored-by: zalmane <oren.elias@gmail.com>
Co-authored-by: TheGLander <34986581+TheGLander@users.noreply.github.com>
Co-authored-by: Blanc Adrien <ifreezback@gmail.com>
Co-authored-by: fsubal <fsubal@users.noreply.github.com>
Co-authored-by: abcang <abcang1015@gmail.com>
Co-authored-by: Victor Berchet <victor@suumit.com>
Co-authored-by: Andrew Leedham <AndrewLeedham@outlook.com>
Co-authored-by: SPWizard01 <the.mtrix@gmail.com>
Co-authored-by: Aleksandras Kamyšanskis <akamysanskis@solutionlab.net>
Co-authored-by: Bart Nagel <bart@tremby.net>
Co-authored-by: Nathan Bierema <nbierema@gmail.com>
Co-authored-by: rgreen32 <35779241+rgreen32@users.noreply.github.com>
Co-authored-by: Shrujal Shah <shrujalshah@hotmail.com>
Co-authored-by: charliemday <45036245+charliemday@users.noreply.github.com>
Co-authored-by: 황승현 <lesomnus@gmail.com>
Co-authored-by: Ravi van Rooijen <ravivanrooijen@live.nl>
Co-authored-by: Dan Vanderkam <danvk@sidewalklabs.com>
Co-authored-by: Dương Tấn Huỳnh Phong <alphanolucifer@gmail.com>
Co-authored-by: Shane Steele-Pardue <shanesp@live.unc.edu>
Co-authored-by: Shane Steele-Pardue <shane.steele-pardue@onecowstanding.com>
Co-authored-by: schl3ck <42554556+schl3ck@users.noreply.github.com>
Co-authored-by: Dmitry Semigradsky <semigradskyd@gmail.com>
Co-authored-by: Chuan Zh <zhchuan7@gmail.com>
Co-authored-by: Tomas Englundh <github@tengl.dev>
Co-authored-by: ThomHuynh <59808215+ThomHuynh@users.noreply.github.com>
Co-authored-by: Luu-Quan Thom Huynh <luu-quan.thom.huynh@sap.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Avi Vahl <avi.vahl@wix.com>
Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com>
Co-authored-by: Shadman Kolahzary <shadman.ko@gmail.com>
Co-authored-by: Noah Overcash <me@ncovercash.dev>
Co-authored-by: Tekdycaml <zhang_nan_163@163.com>
Co-authored-by: nzhang4 <nzhang4@stubhub.com>
Co-authored-by: Reece Adamson <41651655+radamson@users.noreply.github.com>
Co-authored-by: Emily Marigold Klassen <forivall@gmail.com>
Co-authored-by: Elizabeth Samuel <elizs@microsoft.com>
Co-authored-by: TristanTaradel <50833459+TristanTaradel@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Devansh Jethmalani <jethmalani.devansh@gmail.com>
Co-authored-by: 배하람 <hisfedev@gmail.com>
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: jirufik <42334265+jirufik@users.noreply.github.com>
Co-authored-by: Alpha <alpha0010@users.noreply.github.com>
Co-authored-by: Jannik Portz <janizde@users.noreply.github.com>
Co-authored-by: Eli Barzilay <eli@barzilay.org>
Co-authored-by: Eggbertx <76852+Eggbertx@users.noreply.github.com>
Co-authored-by: Eggbertx <eggbertx@users.noreply.github.com>
Co-authored-by: Vijay Pemmaraju <vijayvmp@gmail.com>
Co-authored-by: Daz Wilkin <DazWilkin@users.noreply.github.com>
Co-authored-by: Ricard Solé <3116474+iamricard@users.noreply.github.com>
Co-authored-by: Gray Zhang <otakustay@gmail.com>
Co-authored-by: hiroki <hiroki.osame@gmail.com>
Co-authored-by: Michael <mihail.vasyliv.mail@gmail.com>
Co-authored-by: Konrad <32324644+kulbon@users.noreply.github.com>
Co-authored-by: Konrad Kuliś <konrad@krakweb.pl>
Co-authored-by: Kyℓe Hensel <k-yle@users.noreply.github.com>
Co-authored-by: Baptiste Guerin <38328426+BaptistG@users.noreply.github.com>
Co-authored-by: Keana Delmotte <keana.delmotte@gmail.com>
Co-authored-by: Anatoly Pitikin <xapdkop@outlook.com>
Co-authored-by: Oliver Joseph Ash <oliverjash@gmail.com>
Co-authored-by: Joshua Horowitz <joshuah@alum.mit.edu>
Co-authored-by: Yuichiro Tsuchiya <t.yic.yt@gmail.com>
Co-authored-by: Itay Levy <levyitay@gmail.com>
Co-authored-by: Itay Levy <itayl@ironsrc.com>
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Co-authored-by: Simon Tretter <simllll@users.noreply.github.com>
Co-authored-by: Brian Cort <12662578+thatcort@users.noreply.github.com>
Co-authored-by: Brian Cort <brian@pienso.com>
Co-authored-by: Julien TASSIN <julien.tassin.pro@gmail.com>
Co-authored-by: Maciej Mroziński <maciej.k.mrozinski@gmail.com>
Co-authored-by: Vlad Pirlog <avi.pirlog@gmail.com>
Co-authored-by: Akihrio Kiuchi <44729662+Aki-7@users.noreply.github.com>
@joshgoebel
Copy link
Contributor

Is this strange namespace + export function and export var the only way to include both type exports AND a default export in the same file? I see how it's kind of mixing everything into one huge blob (which also seems a bit strange to me).

highlightjs/highlight.js#2945

Is there some better way for us to do this? I find the whole ambient module thing very confusing. If anyone can assist we'd be grateful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Check Config Changes a module config files Edits Infrastructure Edits multiple packages Other Approved This PR was reviewed and signed-off by a community member. Owner Approved A listed owner of this package signed off on the pull request. Perf: Worse typescript-bot determined that this PR has a negative impact on compilation performance. Popular package This PR affects a popular package (as counted by NPM download counts).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants