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

Function makeUnsafe

packages/effect/src/Ref.ts:142–146  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

140 * @since 4.0.0
141 */
142export const makeUnsafe = <A>(value: A): Ref<A> => {
143 const self = Object.create(RefProto)
144 self.ref = MutableRef.make(value)
145 return self
146}
147
148/**
149 * Creates a new Ref with the specified initial value.

Callers 1

makeFunction · 0.70

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected