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

Function secret

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

Source from the content-addressed store, hash-verified

463
464/** @internal */
465export const secret = (name?: string): Config.Config<Secret.Secret> => {
466 const config = primitive(
467 "a secret property",
468 (text) => Either.right(InternalSecret.fromString(text))
469 )
470 return name === undefined ? config : nested(config, name)
471}
472
473/** @internal */
474export const redacted = <A>(

Callers

nothing calls this directly

Calls 2

primitiveFunction · 0.85
fromStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…