closure-compiler/src/com/google/javascript/rhino/jstype/JSType.java
/**
   * Determines if the specified type is exempt from standard invariant templatized typing rules.
   */
Determines if the specified type is exempt from standard invariant templatized typing rules.
Determines if the specified type is exempt from standard invariant templatized typing rules .
static boolean isIThenableSubtype(JSType type) {
    if (type.isTemplatizedType()) {
      TemplatizedType ttype = type.toMaybeTemplatizedType();
      return ttype.getTemplateTypeMap().hasTemplateKey(ttype.registry.getThenableValueKey());
    }
    return false;
  }
static boolean isIThenableSubtype ( JSType type ) { if ( type . isTemplatizedType ( ) ) { TemplatizedType ttype = type . toMaybeTemplatizedType ( ) ; return ttype . getTemplateTypeMap ( ) . hasTemplateKey ( ttype . registry . getThenableValueKey ( ) ) ; } return false ; }
Determines if the specified type is exempt from standard invariant templatized typing rules.
Determines if the specified type is exempt from standard invariant templatized typing rules .