()
| 138 | } |
| 139 | |
| 140 | get shell(): ShellApi { |
| 141 | invariant( |
| 142 | this.isConnected, |
| 143 | 'Failed to access the Shell API: consumer is not connected. Did you forget to run "connect()"?' |
| 144 | ); |
| 145 | |
| 146 | if (this.shellApi) { |
| 147 | return this.shellApi; |
| 148 | } |
| 149 | |
| 150 | this.shellApi = new ShellApi(this.channel); |
| 151 | return this.shellApi; |
| 152 | } |
| 153 | |
| 154 | get preview(): PreviewApi { |
| 155 | invariant( |
nothing calls this directly
no outgoing calls
no test coverage detected