Repository navigation
v0.45.0
Minor Changes
-
#419
7cd7216Thanks @mattiamanzati! - Add support for custom APIs in deterministicKeys diagnostic using the@effect-identifierJSDoc tag.You can now enforce deterministic keys in custom APIs that follow an
extends MyApi("identifier")pattern by:- Adding
extendedKeyDetection: trueto plugin options to enable detection - Marking the identifier parameter with
/** @effect-identifier */JSDoc tag
Example:
export function Repository(/** @effect-identifier */ identifier: string) { return Context.Tag("Repository/" + identifier); } export class UserRepo extends Repository("user-repo")< UserRepo, { /** ... */ } >() {}
- Adding