File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,7 @@ export default class DocItemLoader {
4747 }
4848
4949 /**
50- * Attempts to resolve an API item from the provided apiDefinitionRef.
51- * First checks the cache for the package, if not in the cache then the method
52- * will attempt to the locate the associated json file to load the package and
53- * check there. If the API item can not be found the method will return undefined.
50+ * {@inheritdoc ApiDocumentation.IReferenceResolver }
5451 */
5552 public resolve ( apiDefinitionRef : IApiDefinitionReference , reportError : ( message : string ) => void ) : IDocItem {
5653 if ( ! apiDefinitionRef ) {
Original file line number Diff line number Diff line change @@ -61,6 +61,13 @@ export interface IScopePackageName {
6161/**
6262 * A dependency for ApiDocumentation constructor that abstracts away the function
6363 * of resolving an API definition reference.
64+ *
65+ * @internalremarks reportError() will be called if the apiDefinitionRef is to a non local
66+ * item and the package of that non local item can not be found.
67+ * If there is no package given and an item can not be found we will return undefined.
68+ * Once we support local references, we can be sure that reportError will only be
69+ * called once if the item can not be found (and undefined will be retured by the reference
70+ * function).
6471 */
6572export interface IReferenceResolver {
6673 resolve ( apiDefinitionRef : IApiDefinitionReference , reportError : ( message : string ) => void ) : IDocItem ;
You can’t perform that action at this time.
0 commit comments