Skip to content

[api-extractor] add option to remove line numbers from api reports? #4419

Open
@phryneas

Description

@phryneas

Summary

Currently it's very annoying to get a "different api report" if any file has a new line added anywhere.
Essentially, the diff is most of the time:

-// src/core/types.ts:178:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts
+// src/core/types.ts:179:3 - (ae-forgotten-export) The symbol "MutationQueryReducer" needs to be exported by the entry point index.d.ts

Would it be possible to add an option to remove/omit line numbers?
The error message here is pinning it down more than enough, pointing to the MutationQueryReducer symbol.

Standard questions

Question Answer
@microsoft/api-extractor version? 7.38.0
Operating system? irrelevant
API Extractor scenario? reporting
Would you consider contributing a PR? Yes
TypeScript compiler version? irrelevant
Node.js version (node -v)? irrelevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoWe can't proceed because we need a better repro or an answer to a question

    Type

    No type

    Projects

    Status

    AE/AD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions