license export function invariant ( condition , message ) { if ( ! condition ) { throw new Error ( message ) ; } } export function withDefault < X > ( maybeValue , defaultValue ) { return typeof maybeValue !== "undefined" && maybeValue !== null ? ( maybeValue as X ) : defaultValue ; }