Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

The data returned by getHeaderFiles does not matche the return type #12

Description

@wlinna

According to the return type of getHeaderFiles here , the function should return IFile[] | undefined.
However, based on my debugging, it actually returns { file: IFile }[] | undefined which will result in runtime errors in library user's code.

As a workaround, I have to run

markup.header.files = (markup.header.files).map((f: any) => f.file); for each markup to get the expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions