-
Notifications
You must be signed in to change notification settings - Fork 30.5k
chore: migrate module keyword to namespace #66292
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
chore: migrate module keyword to namespace #66292
Conversation
ElizabethSamuel-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signing off for office-js and office-js-preview - our downstream processes and documentation aren't adversely affected
…yped#66292 This is technical removal. In DefinitelyTyped#66292 there is an effort to update DT for upcoming TS language changes (see linked PR for details) and updating this specifc DT package (@hapi/nes) to pass checks againsts current status of TS language would prove fruitless. The upstream JS package already progressed and DT types are out of sync with current module. One could just revert this PR, in case of change to @hapi/nes types is to be done in future. Thank you for your understanding!
) This is technical removal. In #66292 there is an effort to update DT for upcoming TS language changes (see linked PR for details) and updating this specifc DT package (@hapi/nes) to pass checks againsts current status of TS language would prove fruitless. The upstream JS package already progressed and DT types are out of sync with current module. One could just revert this PR, in case of change to @hapi/nes types is to be done in future. Thank you for your understanding!
|
Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files. db.js (unpkg)was missing the following properties:
doctrine (unpkg)was missing the following properties:
lokijs (unpkg)was missing the following properties:
murmurhash3js (unpkg)was missing the following properties:
nes (unpkg)was missing the following properties:
node-hue-api (unpkg)was missing the following properties:
as well as these 3 other properties...timer, locateBridges, searchForBridges precise (unpkg)was missing the following properties:
revalidator (unpkg)was missing the following properties:
simple-url-cache (unpkg)was missing the following properties:
The most common way to resolve this error is to use 'export =' syntax.
as well as these 1 other properties...RedisPool swiz (unpkg)was missing the following properties:
|
| ## The history of Definitely Typed | ||
|
|
||
| Definitely Typed is one of the most active repositories on GitHub. You might have wondered how the project came to be. A history of Definitely Typed exists, that was put together by @johnnyreilly. It tells the story of the early days of Definitely Typed, from a repository created by @borisyankov, to the point where it became a pivotal part of the TypeScript ecosystem. [You can read the story of Definitely Typed here](https://johnnyreilly.com/definitely-typed-the-movie). | ||
| Definitely Typed is one of the most active repositories on GitHub. You might have wondered how the project came to be. A history of Definitely Typed exists, that was put together by @johnnyreilly. It tells the story of the early days of Definitely Typed, from a repository created by @borisyankov, to the point where it became a pivotal part of the TypeScript ecosystem. [You can read the story of Definitely Typed here](https://johnnyreilly.com/definitely-typed-the-movie). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not an intentional part of this PR, but I like the change. 😄
.eslintrc.cjs
Outdated
| 'ts-check': false, | ||
| } | ||
| ], | ||
| '@typescript-eslint/prefer-namespace-keyword': 'error', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change now needs to be made on the microsoft/definitelytyped-tools repo in the eslint-plugin package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…yped#66292 (DefinitelyTyped#66372) This is technical removal. In DefinitelyTyped#66292 there is an effort to update DT for upcoming TS language changes (see linked PR for details) and updating this specifc DT package (@hapi/nes) to pass checks againsts current status of TS language would prove fruitless. The upstream JS package already progressed and DT types are out of sync with current module. One could just revert this PR, in case of change to @hapi/nes types is to be done in future. Thank you for your understanding!
Overview
Ref: microsoft/TypeScript#51825
Enables
@typescript-eslint/prefer-namespace-keywordin this repo. The steps I took were pretty straightforward:rulesobject in.eslintrc.cjswith{ '@typescript-eslint/prefer-namespace-keyword': 'error' }eslint-in comments withJOSH_IGNORE_-(so that ESLint wouldn't error on missing rules)npx eslint "./types/**/*.ts" "./types/**/*.tsx" --fixJOSH_IGNORE_-replacements.eslintrc.cjsback tomaster, then added the'@typescript-eslint/prefer-namespace-keyword': 'error'at the end ofrules