edgedb / edgedb-js

The official TypeScript/JS client library and query builder for EdgeDB
https://edgedb.com
Apache License 2.0
514 stars 65 forks source link

Loosen type of `e.shape`'s returned scope #1045

Closed scotttrinh closed 4 months ago

scotttrinh commented 4 months ago

Type intersection creates an expression with a fixed __shape__ expression. This was being glossed over before because the parameter type was unknown, but once we switched it to match the scopified object expression, it became too strict for use with intersections.

Closes #856