How to use the @microsoft/api-extractor-model.ApiItemContainerMixin.isBaseClassOf function in @microsoft/api-extractor-model

To help you get started, we’ve selected a few @microsoft/api-extractor-model examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / rushstack / apps / api-documenter / src / cli / BaseAction.ts View on Github external
console.log(colors.yellow(`Warning: Unresolved @inheritDoc tag for ${apiItem.displayName}: `
              + result.errorMessage));
          } else {
            if (result.resolvedApiItem instanceof ApiDocumentedItem
              && result.resolvedApiItem.tsdocComment
              && result.resolvedApiItem !== apiItem) {
              this._copyInheritedDocs(apiItem.tsdocComment, result.resolvedApiItem.tsdocComment);
            }
          }
        }

      }
    }

    // Recurse members
    if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
      for (const member of apiItem.members) {
        this._applyInheritDoc(member, apiModel);
      }
    }
  }
github microsoft / rushstack / apps / api-documenter / src / documenters / YamlDocumenter.ts View on Github external
}

          if (this._apiItemsByTypeName.has(typeName)) {
            // We saw this name before, so it's an ambiguous match
            ambiguousNames.add(typeName);
            break;
          }

          this._apiItemsByTypeName.set(typeName, apiItem);
        }

        break;
    }

    // Recurse container members
    if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
      for (const apiMember of apiItem.members) {
        this._initApiItemsByTypeNameRecursive(apiMember, ambiguousNames);
      }
    }
  }
github esfx / esfx / scripts / docs.js View on Github external
}
        }
    }

    if (apiItem.displayName === "__computed" && apiItem instanceof ApiDeclaredItem) {
        const match = /\[[^\[\]]+\]/.exec(apiItem.excerpt.text);
        if (match) {
            const nameSymbol = getNameSymbol(apiItem);
            if (nameSymbol) {
                apiItem[nameSymbol] = match[0];
            }
        }
    }

    // Recurse members
    if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
        for (const member of apiItem.members) {
            fixupModel(member, apiModel);
        }
    }
}
github esfx / esfx / scripts / docs / yamlDocumenter.js View on Github external
// @ts-ignore
                    if (this._apiItemsByTypeName.has(typeName)) {
                        // We saw this name before, so it's an ambiguous match
                        ambiguousNames.add(typeName);
                        break;
                    }

                    // @ts-ignore
                    this._apiItemsByTypeName.set(typeName, apiItem);
                }

                break;
        }

        // Recurse container members
        if (ApiItemContainerMixin.isBaseClassOf(apiItem)) {
            for (const apiMember of apiItem.members) {
                this._initApiItemsByTypeNameRecursive(apiMember, ambiguousNames);
            }
        }
    }