export interface ApiConfig { apiUrl: string headers: Option> } const tag = GenericTag("@services/tag") export const layer = (config: ApiConfig) => tag.makeLayer(config) export const ApiConfig = { Tag: tag, layer } export const getConfig = (self: (cfg: ApiConfig) => Effect) => tag.flatMap(self)