@@ -130,9 +130,9 @@ function LinkerPluginShell() {
130130
131131 /**
132132 * Loaded documented interfaces that can be used to resolve links to external APIs.
133- * @type {DocumentedInterface [] }
133+ * @type {Manifest [] }
134134 */
135- loadedInterfaces = [ ] ;
135+ importedManifests = [ ] ;
136136
137137 /**
138138 * Load the documented interface into this linker so you can resolve links to those documents.
@@ -141,7 +141,7 @@ function LinkerPluginShell() {
141141 * or a file ./apis/lib.json)
142142 * @return {Promise<void> }
143143 */
144- async loadDocumentedInterface ( uri : string ) {
144+ async loadManifest ( uri : string ) {
145145 let isURL = true ;
146146
147147 try {
@@ -158,9 +158,9 @@ function LinkerPluginShell() {
158158 contents = await fs . readFile ( path . join ( process . cwd ( ) , uri ) , "utf8" ) ;
159159 }
160160
161- const documentedInterface = external . read ( contents ) ;
162- const { registry} = documentedInterface ;
163- const { siteDomain, siteRoot} = documentedInterface . metadata ;
161+ const manifest = external . read ( contents ) ;
162+ const { registry} = manifest ;
163+ const { siteDomain, siteRoot} = manifest . metadata ;
164164
165165 if ( ! siteDomain ) {
166166 throw new Error ( "Imported documented interfaces must have a siteDomain!" ) ;
@@ -175,7 +175,7 @@ function LinkerPluginShell() {
175175 }
176176 }
177177
178- this . loadedInterfaces . push ( documentedInterface ) ;
178+ this . importedManifests . push ( manifest ) ;
179179 }
180180
181181 /**
@@ -320,8 +320,8 @@ function LinkerPluginShell() {
320320 this . queryCache . set ( docPath , fileUrl ) ;
321321 }
322322 } else {
323- for ( let i = 0 ; i < this . loadedInterfaces . length && ! fileUrl ; i ++ ) {
324- const externalInterface = this . loadedInterfaces [ i ] ;
323+ for ( let i = 0 ; i < this . importedManifests . length && ! fileUrl ; i ++ ) {
324+ const externalInterface = this . importedManifests [ i ] ;
325325 const doc = query ( docPath , externalInterface . root ) [ 0 ] ;
326326
327327 if ( doc ) {
0 commit comments