(self: Context<Services>, ref: Reference<Shape>)
| 1181 | * @internal |
| 1182 | */ |
| 1183 | export const getReferenceUnsafe = <Services, Shape>(self: Context<Services>, ref: Reference<Shape>): Shape => { |
| 1184 | const value = lookup(self, ref.key) |
| 1185 | return value === notFound ? getDefaultValue(ref) : value as Shape |
| 1186 | } |
| 1187 | |
| 1188 | const ServiceNotFoundErrorTypeId = "~effect/Context/ServiceNotFoundError" as const |
| 1189 |
nothing calls this directly
no test coverage detected