Skip to content

Index not displayed when a module does not contain classes and enums. #35

@KidyovrS

Description

@KidyovrS

This only happens with --mdEngine gitbook.

Source:

export interface IMyInterface {
}

export const MyVariable: string = "HelloWorld";

Actual:

# Variables

<a id="myvariable"></a>

## `<Const>` MyVariable

**● MyVariable**: *`string`* = "HelloWorld"

___

Expected:

# Index

### Interfaces

* [IMyInterface](../interfaces/_index_.imyinterface.md)

### Variables

* [MyVariable](_index_.md#myvariable)

---

# Variables

<a id="myvariable"></a>

## `<Const>` MyVariable

**● MyVariable**: *`string`* = "HelloWorld"

___

It's fine to hide index if the module only contains variables/functions, since they're directly documented in the module page. However I suppose interfaces should be treated the same as classes and enums.

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