(domain: {
transform: (
callback: (draft: Draft) => Effect.Effect<void> | void,
) => Effect.Effect<HostRegistration, never, Scope.Scope>
})
| 35 | |
| 36 | const transform = |
| 37 | <Draft>(domain: { |
| 38 | transform: ( |
| 39 | callback: (draft: Draft) => Effect.Effect<void> | void, |
| 40 | ) => Effect.Effect<HostRegistration, never, Scope.Scope> |
| 41 | }) => |
| 42 | (callback: (draft: Draft) => Promise<void> | void) => |
| 43 | register(domain.transform((draft) => Effect.promise(() => Promise.resolve(callback(draft))))) |
| 44 | |
| 45 | const context2: PluginContext = { |
| 46 | options: host.options, |
no test coverage detected