* Creates a TmuxBackend instance. * Throws if TmuxBackend hasn't been registered.
()
| 104 | * Throws if TmuxBackend hasn't been registered. |
| 105 | */ |
| 106 | function createTmuxBackend(): PaneBackend { |
| 107 | if (!TmuxBackendClass) { |
| 108 | throw new Error( |
| 109 | 'TmuxBackend not registered. Import TmuxBackend.ts before using the registry.', |
| 110 | ) |
| 111 | } |
| 112 | return new TmuxBackendClass() |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Creates an ITermBackend instance. |
no outgoing calls
no test coverage detected