Skip to content

Wrong documentation regarding intersection types #6870

@OskarStark

Description

@OskarStark

You name the following in your docs:
CleanShot 2021-12-14 at 10 29 34@2x

AFAIK the used intersection type is invalid:
CleanShot 2021-12-14 at 10 27 18@2x

It will result in a fatal error.

Foo&Bar

should be used in the example.
If you agree I will create a PR

EDIT, it looks like they talk about a intersection types, but use | instead of & in the second screenshot, but a property cannot be int and string at the same time 🤔

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions