You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
According to the return type of getHeaderFileshere , 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.
According to the return type of
getHeaderFileshere , the function should returnIFile[] | undefined.However, based on my debugging, it actually returns
{ file: IFile }[] | undefinedwhich 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.