Repository navigation
v0.58.2
Patch Changes
-
#510
9064174Thanks @mattiamanzati! - ExtendanyUnknownInErrorContextdiagnostic to also check Layer typesThe
anyUnknownInErrorContextdiagnostic now checks both Effect and Layer types foranyorunknownin their error and requirements channels. This helps catch more cases where type information is being lost in your Effect applications.Example:
const effectUnknown = Effect.context<unknown>(); const layerUnknown = Layer.effectDiscard(effectUnknown); // Now reports: This has unknown in the requirements channel which is not recommended.
The diagnostic also now skips explicit Layer type annotations to avoid false positives on intentional type declarations.