effect-io-ai

Package: @effect/printer
Module: DocTree

DocTree.alterAnnotations

Change the annotation of a document to a different annotation, or none at all.

Signature

declare const alterAnnotations: { <A, B>(f: (a: A) => Iterable<B>): (self: DocTree<A>) => DocTree<B>; <A, B>(self: DocTree<A>, f: (a: A) => Iterable<B>): DocTree<B>; }

Source

Since v1.0.0