Skip to content

#2521 changed the behavior of documented arrow function #2824

@hoodmane

Description

@hoodmane

Consider the following source:

/**
 * Here is some documentation.
 */
export const f = () => {};

/**
 * Here is some documentation
 */
export function g() {}

Commit d1be956 changed how this is handled. If I checkout the commit before it e30ed7a, run npm ci && npm build and then run typedoc on this file, the rendering of f and g are indistinguishable:

image

On d1be956 the output changed so that the comment is above f. The output for g is unchanged:

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions