-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Conversation
// 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; |
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.
Neat
"composite": true, | ||
"compilerOptions": { | ||
"composite": true | ||
}, |
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.
🤦♂️
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.
Yeah, luckily newer TS caught this
"@stoplight/types": "12.3.0", | ||
"@stoplight/types": "13.0.0", |
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.
Plans to bump to 13 in the other spectral packages?
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.
Yeah, I intend to do it
🎉 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 📦🚀 |
Extract typing-related changes from #2026
Checklist
Does this PR introduce a breaking change?