const program = pipe(
getSettings(), // object | null
// TODO: if (!settings.colorscheme) interupt
Effect.flatMap(settings => {
// similarly to an `if (...) return`, the type should be narrowed to `object`
return applySettings(settings);
}),
);
const program = pipe(
getSettings(), // object | null
// TODO: if (!settings.colorscheme) interupt
Effect.flatMap(settings => {
// similarly to an `if (...) return`, the type should be narrowed to `object`
return applySettings(settings);
}),
);