MCPcopy Create free account
hub / github.com/Effect-TS/effect / setValue

Method setValue

packages/effect/src/unstable/cli/Prompt.ts:2059–2061  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

2057 }
2058
2059 setValue(value: string): void {
2060 this.date.setFullYear(Number.parseInt(value.slice(-4)))
2061 }
2062
2063 override toString() {
2064 const year = `${this.date.getFullYear()}`.padStart(4, "0")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected