Skip to content

fix: add type-narrowing for subEntities wrapped in Maybe

Philipp Heinz requested to merge peinz/fix-narrowing-maybe-type into master
type Foo = {
   foo: Maybe<{bar: string; baz: string}>;
}
type foo_narrowed = NarrowedEntity<Foo, {
    foo: { bar: 1 } // this works now
}>:
Edited by Philipp Heinz

Merge request reports