-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Replace deprecated dtslint
#30081
Comments
I vote for tsd with how we're using it. Seemed not too bad to replace to that one. |
@MikeMcC399 There's a lot of dep updates we need highlighted in this issue btw: #3777 |
I just looked at the first one on the list https://www.npmjs.com/package/@types/chalk which says:
so there may be scope for simplification / removal with other related packages. |
@MikeMcC399 Yah, open to any PRs from anything in there. I've been whittling away at the list as much as I have time. |
I guess I could take a look at these and see how I fare! 🙂 |
|
Yah, any ideas on updates could be helpful. A lot of us are relearning these deps use cases as well, so I do think you're likely as well positioned as we are to update. |
OK. I'll do separate issues as they are easier to manage in terms of assignment, tracking, etc. |
@jennifer-shehane Just to draw your attention, the following test is passing: import { expectType, expectNotType, expectAssignable, expectNotAssignable } from "tsd";
type Target = { a: { b: 1 } };
expectType<Target>({ a: { b: 1 } });
expectNotType<Target>({ a: { b: 1 } });
expectAssignable<Target>({ a: { b: 1 } });
expectNotAssignable<Target>({ a: { b: 1 } }); This issue is known for years, see: tsdjs/tsd#141. The solution is also known and was mentioned here: tsdjs/tsd#196. (By the way, there are many other improvements mention in this issue, but nothing was done for a year.) I was maintaining forked So I decided to write a type testing tool from scratch: mrazauskas/tsd-lite#364 This is how TSTyche was born.
And there is much more. For instance, documentation website: https://tstyche.org By the way, I was helping them with migration. I would be happy to migrate |
|
By the way, the following script is not working as intended: Line 14 in 195cdb1
Just add The culprit is here: cypress/npm/vue/test-tsd/tsconfig.tsd.json Lines 12 to 15 in 195cdb1
The directory name is @lmiller1990 If I got it right, the typo was introduced in #22757. |
Thanks for your detective work regarding the vue package! Would you like to open a separate issue and/or PR for this, as it is not really well placed here. |
What would you like?
Replace the use of the deprecated npm module dtslint "A utility built on TSLint for linting TypeScript declaration (.d.ts) files."
cypress/cli/package.json
Line 94 in 5afb929
Why is this needed?
The npm module dtslint is deprecated and the source repo https://github.com/Microsoft/dtslint was archived on Nov 16, 2023. [email protected] was the final version released.
See https://aka.ms/type-testing-tools which shows:
dtslint
is used in Cypress CI workflows, in the joblint-types
cypress/.circleci/workflows.yml
Lines 1608 to 1622 in 6bf0257
Other
The text was updated successfully, but these errors were encountered: