Skip to content

[api-extractor] Fix a bug with handling of merged declarations - #568

Merged
Pete Gonzalez (octogonz) merged 5 commits into
masterfrom
pgonzal/merged-declaration
Mar 20, 2018
Merged

Pete Gonzalez (octogonz) merged 5 commits into
masterfrom
pgonzal/merged-declaration

Conversation

@octogonz

Copy link
Copy Markdown
Collaborator

When we tried to upgrade the cyclic dependencies, API Extractor failed to process an API item that accidentally had two definitions that were being merged:

/**
 * Return value of a method or function.
 * @alpha
 */
export interface IApiReturnValue {
  /**
   * The data type returned by the function
   */
  type: string;

  /**
   * Describes the return value
   */
  description: MarkupBasicElement[];
}

. . .

/**
 * Describes a return type and description of the return type
 * that is given in documentation comments.
 *
 * @alpha
 */
export interface IApiReturnValue {
  type: string;
  description: MarkupBasicElement[];
}

I removed the duplicate definition, but also fixed up the *.d.ts generator to handle this case correctly.

…ations

# Conflicts:
#	build-tests/api-extractor-test-01/dist/index-preview.d.ts
#	build-tests/api-extractor-test-01/dist/index-public.d.ts
…ag doesn't get set until after all declarations are solved; this eliminates the bug with merged declarations

# Conflicts:
#	apps/api-extractor/src/generators/packageTypings/AstSymbol.ts
@octogonz
Pete Gonzalez (octogonz) merged commit 0d9674e into master Mar 20, 2018
@octogonz
Pete Gonzalez (octogonz) deleted the pgonzal/merged-declaration branch May 2, 2018 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants