Skip to content

[api-documenter] Output files get overwritten for declarations with differences in character case #1281

Open
@JCMais

Description

@JCMais

I was trying to document the following class:
https://github.com/JCMais/node-libcurl/blob/397120ecc54d804eddc34d83b0e1c286abc08fd9/lib/Curl.ts#L83

Which has an augmentation using an Interface below itself:
https://github.com/JCMais/node-libcurl/blob/397120ecc54d804eddc34d83b0e1c286abc08fd9/lib/Curl.ts#L509

This module also exports another symbol called curl:
https://github.com/JCMais/node-libcurl/blob/397120ecc54d804eddc34d83b0e1c286abc08fd9/lib/curlFn.ts#L154

I found two problems:

  1. The Curl class would generate a file node-libcurl.curl.md, but the curl variable above also generates a file with the same name, so the one for the Class is overwritten.

  2. If I rename the curl function to something else, the node-libcurl.curl.md now mentions the Curl Interface, and not the Curl class which I expected it would, since the declarations are merged.

Am I having wrong expectations here? The Curl interface was needed to generate better type hints for the library users, but looks like it's causing some trouble. Is there any workaround?

The curl function I suppose I will need to rename to something else, since the files will always have the same name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ae-ambiguous-idsThis issue belongs to a set of bugs tracked by Peteneeds designThe next step is for someone to propose the details of an approach for solving the problem

    Type

    No type

    Projects

    Status

    AE/AD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions