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

Function redacted

packages/effect/src/internal/config.ts:483–492  ·  view source on GitHub ↗
(
  nameOrConfig?: string | Config.Config<A>
)

Source from the content-addressed store, hash-verified

481
482/** @internal */
483export const redacted = <A>(
484 nameOrConfig?: string | Config.Config<A>
485): Config.Config<Redacted.Redacted<A | string>> => {
486 const config: Config.Config<A | string> = isConfig(nameOrConfig) ? nameOrConfig : string(nameOrConfig)
487 const redacted = Object.create(proto)
488 redacted._tag = OpCodes.OP_REDACTED
489 redacted.original = config
490 redacted.redact = redacted_.make
491 return redacted
492}
493
494/** @internal */
495export const branded: {

Callers

nothing calls this directly

Calls 3

isConfigFunction · 0.85
createMethod · 0.80
stringFunction · 0.70

Tested by

no test coverage detected