MCPcopy Index your code
hub / github.com/Effect-TS/effect / color

Function color

packages/printer/test/docTree.test.ts:102–105  ·  view source on GitHub ↗
(
        doc: Doc.Doc<SimpleHtml>,
        color: "Red" | "Green" | "Blue"
      )

Source from the content-addressed store, hash-verified

100 const bold = (doc: Doc.Doc<SimpleHtml>): Doc.Doc<SimpleHtml> => Doc.annotate(doc, { _tag: "Bold" })
101
102 const color = (
103 doc: Doc.Doc<SimpleHtml>,
104 color: "Red" | "Green" | "Blue"
105 ): Doc.Doc<SimpleHtml> => Doc.annotate(doc, { _tag: "Color", color })
106
107 const italicized = (doc: Doc.Doc<SimpleHtml>): Doc.Doc<SimpleHtml> => Doc.annotate(doc, { _tag: "Italicized" })
108

Callers 2

docTree.test.tsFile · 0.70
prettyLoggerTtyFunction · 0.50

Calls 1

annotateMethod · 0.65

Tested by

no test coverage detected