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

Interface optionalKey

packages/effect/src/Schema.ts:2358–2378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2356 * @since 4.0.0
2357 */
2358export interface optionalKey<S extends Constraint> extends
2359 BottomLazy<
2360 S["ast"],
2361 optionalKey<S>,
2362 S["~type.parameters"],
2363 S["~type.mutability"],
2364 "optional",
2365 S["~type.constructor.default"],
2366 S["~encoded.mutability"],
2367 "optional"
2368 >
2369{
2370 readonly "Type": S["Type"]
2371 readonly "Encoded": S["Encoded"]
2372 readonly "DecodingServices": S["DecodingServices"]
2373 readonly "EncodingServices": S["EncodingServices"]
2374 readonly "~type.make.in": S["~type.make.in"]
2375 readonly "~type.make": S["~type.make"]
2376 readonly "Iso": S["Iso"]
2377 readonly schema: S
2378}
2379interface optionalKeyLambda extends Lambda {
2380 <S extends Constraint>(self: S): optionalKey<S>
2381 readonly "~lambda.out": this["~lambda.in"] extends Constraint ? optionalKey<this["~lambda.in"]> : never

Callers 5

SchemaAST.tsFile · 0.85
withDecodingDefaultKeyFunction · 0.85
Schema.tsFile · 0.85
OptionFromOptionalKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected