effect-io-ai

Package: @effect/printer
Module: DocStream

DocStream.alterAnnotations

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

Signature

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

Source

Since v1.0.0