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

Function makeUnsafe

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

Source from the content-addressed store, hash-verified

144 * @since 4.0.0
145 */
146export const makeUnsafe = <A>(value: A): Ref<A> => {
147 const self = Object.create(RefProto)
148 self.ref = MutableRef.make(value)
149 return self
150}
151
152/**
153 * 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