export function assert ( condition , msg ? ) { if ( ! condition ) { throw new Error ( msg ) ; } } export function assertUnreachable ( _x ) { throw new Error ( 'This case should have never been reached' ) ; }