endTypeIfNeeded(t = "", s = Z) {
    return t === Bt ? Gt : s;
  }
If the id is an end node ( [*] ), then return the end type
else return the given type

@param {string} id
@param {string} type
@returns {string} - the type that should be used
@private