()
| 152 | } |
| 153 | |
| 154 | get preview(): PreviewApi { |
| 155 | invariant( |
| 156 | this.isConnected, |
| 157 | 'Failed to access the Preview API: consumer is not connected. Did you forget to run "connect()"?' |
| 158 | ); |
| 159 | |
| 160 | if (this.previewApi) { |
| 161 | return this.previewApi; |
| 162 | } |
| 163 | |
| 164 | this.previewApi = new PreviewApi(this.channel); |
| 165 | return this.previewApi; |
| 166 | } |
| 167 | } |
nothing calls this directly
no outgoing calls
no test coverage detected