Skip to content

Typescript: KeyError for optional Generic Fields #122

Open
@maximilianmaihoefner

Description

@maximilianmaihoefner

When trying to run sphinx-js over an interface with an optional field with a generic type a KeyError gets thrown.

The code being documented:
interface GenericInterface<T> { optionalField?: T; }

Gives the following Error:
Exception occurred: File "/usr/local/lib/python3.7/site-packages/sphinx_js/typedoc.py", line 123, in make_type_name node = self.nodelist[type.get('id')] KeyError: 201

Using:
TypeScript 3.5.3
TypeDoc 0.15.0
Sphinx 2.2.0
Sphinx-JS 2.8

The workaround for now is to make the Field not optional, which is fine, but it would be better to have it supported by sphinx-js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    typescriptHaving to do with sphinx-js's typescript support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions