Skip to content

JSDoc API detection follows syntax, not TypeScript export semantics #3

Open

Description

@altaywtf

A JSDoc block counts as API docs when its declaration carries export, is named in an export list, export default, or export =, or sits inside one. TypeScript visibility is wider and narrower than that:

Source TypeScript Rule
namespace Internal { /** Doc. */ export function f() {} } not public allowed
api.d.ts: /** Doc. */ interface Options {} with no export list public reported

Activity

  1. altaywtf commented on Nov 9, 2026

    @altaywtf
    MemberAuthor

    The .d.ts row landed in #10, along with declare module and declare global. The namespace row stays open: with autofix, narrowing deletes docs reached through export = Outer.Inner or import = aliases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions