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

test(fixtures): update rest-props-multiple to repro #138 #146

Closed
wants to merge 1 commit into from

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Oct 25, 2024

To reliably repro the bug in #138, update the rest-props-multiple example.

This can occur when using an intersection and also have a prop name that incorrectly extends the restProps.

$ bun --bun tsc --project tsconfig.fixtures.json
tests/fixtures/rest-props-multiple/output.d.ts:6:18 - error TS2430: Interface 'RestPropsMultipleProps' incorrectly extends interface 'HTMLAttributes<HTMLUListElement> & HTMLOlAttributes'.
  Type 'RestPropsMultipleProps' is not assignable to type 'HTMLOlAttributes'.
    Types of property 'type' are incompatible.
      Type '"ordered" | "unordered" | undefined' is not assignable to type '"a" | "i" | "1" | "A" | "I" | null | undefined'.
        Type '"ordered"' is not assignable to type '"a" | "i" | "1" | "A" | "I" | null | undefined'.

6 export interface RestPropsMultipleProps extends RestProps {

@metonym
Copy link
Collaborator Author

metonym commented Oct 25, 2024

This expectedly failed. Rebased #138 on this.

@metonym metonym closed this Oct 25, 2024
@metonym metonym deleted the update-rest-props-multiple branch October 27, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant