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

Support intersection of array types #53

Open
romm opened this issue Jan 3, 2022 · 0 comments
Open

Support intersection of array types #53

romm opened this issue Jan 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@romm
Copy link
Member

romm commented Jan 3, 2022

Psalm supports syntax like this one:

/**
 * @psalm-type Foo = array{b: int}
 * @psalm-type Bar = array{a: int}
 * @return Foo&Bar
 */
function foo() {
    return ['a' => 1, 'b' => 2];
}

This library should be able to support it as well.

Reference: https://twitter.com/orklah/status/1478027768105480194

@romm romm added the enhancement New feature or request label Jan 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant