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

Method setValue

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

Source from the content-addressed store, hash-verified

2028 }
2029
2030 setValue(value: string): void {
2031 const month = Number.parseInt(value.slice(-2)) - 1
2032 this.date.setMonth(month < 0 ? 0 : month)
2033 }
2034
2035 override toString() {
2036 const month = this.date.getMonth()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected