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

chore(core): improve ruleset typings #2132

Merged
merged 1 commit into from Apr 27, 2022
Merged

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Apr 20, 2022

Extract typing-related changes from #2026

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

@P0lip P0lip self-assigned this Apr 20, 2022
@P0lip P0lip added the chore label Apr 26, 2022
@P0lip P0lip marked this pull request as ready for review April 26, 2022 12:10
@P0lip P0lip requested a review from a team as a code owner April 26, 2022 12:10
Comment on lines +116 to +121
// eslint-disable-next-line @typescript-eslint/ban-types
export type Stringifable<T> = T extends object
? {
[P in keyof T]: Stringifable<T[P]> | { toJSON?(): Stringifable<T[P]> };
}
: T;
Copy link
Contributor

Choose a reason for hiding this comment

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

Neat

Comment on lines -4 to +6
"composite": true,
"compilerOptions": {
"composite": true
},
Copy link
Contributor

Choose a reason for hiding this comment

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

🤦‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, luckily newer TS caught this

Comment on lines -43 to +47
"@stoplight/types": "12.3.0",
"@stoplight/types": "13.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Plans to bump to 13 in the other spectral packages?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I intend to do it

@P0lip P0lip merged commit ec08efe into develop Apr 27, 2022
@P0lip P0lip deleted the chore/core/ruleset-typings branch April 27, 2022 12:07
@stoplight-spectral-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-core-v1.12.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

3 participants