🚀 Feature: Normalize union ordering and readonly array syntax #108
Labels
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: feature
New enhancement or request 🚀
Milestone
Bug Report Checklist
main
branch of the repository.Overview
Splitting out from microsoft/DefinitelyTyped-tools#858 (comment):
@definitelytyped/expect
internally "normalizes" commented types by creating a virtual source file with a type annotation, then stringifying the type annotation. https://github.com/microsoft/DefinitelyTyped-tools/blob/3d6c2ffd0b38eac222e03156c3d62d6020b2b94b/packages/eslint-plugin/src/rules/expect.ts#L492That feature is particularly useful for when you have multiple TS versions (#107). It's also generally nice to be a little less nitpicky for users (see also: #18). Let's take that feature in here!
Additional Info
No response
The text was updated successfully, but these errors were encountered: