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

Function colorToHex

packages/printer/test/docTree.test.ts:114–126  ·  view source on GitHub ↗
(color: "Red" | "Green" | "Blue")

Source from the content-addressed store, hash-verified

112 Doc.annotate(doc, { _tag: "Header", level })
113
114 const colorToHex = (color: "Red" | "Green" | "Blue"): string => {
115 switch (color) {
116 case "Red": {
117 return "#f00"
118 }
119 case "Green": {
120 return "#0f0"
121 }
122 case "Blue": {
123 return "#00f"
124 }
125 }
126 }
127
128 const encloseInTag = (content: string, html: SimpleHtml): string => {
129 switch (html._tag) {

Callers 1

encloseInTagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected