Skip to content

インタフェースの先頭に定義されたインデックスシグネチャが表示されない #34

Open
@szk0u

Description

@szk0u

Index Signaturesすべてのメンバはstringインデックスシグネチャに従わなければならないのコード例が元ファイル(docs/types/index-signatures.md)上では

/** Okay */
interface Foo {
  [key:string]: number
  x: number;
  y: number;
}

となっていて正しいと思われますが、typescript-jp.gitbook.ioでの表示上は

/** Okay */
interface Foo {
  x: number;
  y: number;
}

という表示になっており、元ファイル(docs/types/index-signatures.md)上には存在する[key:string]: numberがなぜか表示されていません。

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