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

Function formatIsOptional

packages/effect/src/SchemaAST.ts:3016–3018  ·  view source on GitHub ↗
(isOptional: boolean | undefined)

Source from the content-addressed store, hash-verified

3014}
3015
3016function formatIsOptional(isOptional: boolean | undefined): string {
3017 return isOptional ? "?" : ""
3018}
3019
3020/** @internal */
3021export function memoizeThunk<A>(f: () => A): () => A {

Callers 1

getExpectedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected