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

Function make

packages/effect/src/Redacted.ts:187–196  ·  view source on GitHub ↗
(value: T, options?: {
  readonly label?: string | undefined
})

Source from the content-addressed store, hash-verified

185 * @since 3.3.0
186 */
187export const make = <T>(value: T, options?: {
188 readonly label?: string | undefined
189}): Redacted<T> => {
190 const self = Object.create(Proto)
191 if (options?.label) {
192 self.label = options.label
193 }
194 redacted.redactedRegistry.set(self, value)
195 return self
196}
197
198const Proto = {
199 [TypeId]: {

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected