* Assert that the given Engine instance has been initialized * * @param instance - Either an Engine instance, or null
( instance: Engine | null, )
| 1675 | * @param instance - Either an Engine instance, or null |
| 1676 | */ |
| 1677 | function assertEngineExists( |
| 1678 | instance: Engine | null, |
| 1679 | ): asserts instance is Engine { |
| 1680 | if (!instance) { |
| 1681 | throw new Error('Engine does not exist'); |
| 1682 | } |
| 1683 | } |
| 1684 | |
| 1685 | let instance: Engine | null; |
| 1686 |
no outgoing calls
no test coverage detected