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

no-duplicate-spread-property: handle intersection types #448

Closed
ajafff opened this issue Oct 30, 2018 · 1 comment
Closed

no-duplicate-spread-property: handle intersection types #448

ajafff opened this issue Oct 30, 2018 · 1 comment

Comments

@ajafff
Copy link
Member

ajafff commented Oct 30, 2018

({
    foo: 1,
    bar: 1,
    ...get<{bar: number} & Record<'foo' | 'baz', number>>(),
    bas: 1,
});

Current behavior: no error
Expected behavior: error on foo: 1 and bar: 1

@ajafff
Copy link
Member Author

ajafff commented Oct 30, 2018

Fixed by #449

@ajafff ajafff closed this as completed Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant