Skip to content

readonly T[] is exported as keyof T[] #1336

Closed
@yume-chan

Description

@yume-chan

Search terms

readonly, keyof

Expected Behavior

For the following code:

export const a: readonly string[] = [];

typedoc should export:

a: readonly string[] = []

Actual Behavior

typedoc exports:

a: keyof string[] = []

image

Steps to reproduce the bug

Environment

  • Typedoc version: 0.17.8
  • TypeScript version: 3.9.6
  • Node.js version: 14.4.0
  • OS: macOS 10.15.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions