(console: A)
| 43 | |
| 44 | /** @internal */ |
| 45 | export const setConsole = <A extends Console.Console>(console: A): Layer.Layer<never> => |
| 46 | layer.scopedDiscard( |
| 47 | fiberRuntime.fiberRefLocallyScopedWith( |
| 48 | defaultServices.currentServices, |
| 49 | Context.add(defaultConsole.consoleTag, console) |
| 50 | ) |
| 51 | ) |
| 52 | |
| 53 | /** @internal */ |
| 54 | export const assert = (condition: boolean, ...args: ReadonlyArray<any>) => |