const e = Effect.gen(function* ($) {
...
if (supplier === undefined) yield* $(new EntryError('Supplier not found'));
...
// raises a warning because supplier might be undefined
const t = supplier.name;
...
return { entries: [entry1, entry2], nextEntryCursor, nextDocCursors };
});
const e = Effect.gen(function* ($) {
...
if (supplier === undefined) yield* $(new EntryError('Supplier not found'));
...
// raises a warning because supplier might be undefined
const t = supplier.name;
...
return { entries: [entry1, entry2], nextEntryCursor, nextDocCursors };
});