( input: MakeInput<Implementation, Items, T>, )
| 79 | } |
| 80 | |
| 81 | export function make< |
| 82 | const Implementation extends Layer.Any, |
| 83 | const Items extends NodeList, |
| 84 | const T extends Tag | undefined = undefined, |
| 85 | >( |
| 86 | input: MakeInput<Implementation, Items, T>, |
| 87 | ): Node<Layer.Success<Implementation>, Layer.Error<Implementation> | Error<Items[number]>, T> { |
| 88 | return { |
| 89 | kind: "layer", |
| 90 | name: input.service !== undefined ? input.service.key : input.name, |
| 91 | service: input.service, |
| 92 | implementation: input.layer, |
| 93 | dependencies: input.deps, |
| 94 | tag: input.tag, |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | export function unbound<R, Shape, const T extends Tag>(service: Context.Key<R, Shape>, tag: T): Node<R, never, T> { |
| 99 | return { |
no outgoing calls
no test coverage detected