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

Function secret

packages/effect/src/internal/config.ts:474–480  ·  view source on GitHub ↗
(name?: string)

Source from the content-addressed store, hash-verified

472
473/** @internal */
474export const secret = (name?: string): Config.Config<Secret.Secret> => {
475 const config = primitive(
476 "a secret property",
477 (text) => Either.right(InternalSecret.fromString(text))
478 )
479 return name === undefined ? config : nested(config, name)
480}
481
482/** @internal */
483export const redacted = <A>(

Callers

nothing calls this directly

Calls 2

primitiveFunction · 0.85
fromStringMethod · 0.80

Tested by

no test coverage detected