jneug / typst-mantys

Template for documenting Typst Packages and Templates.
MIT License
41 stars 5 forks source link

Ensure dtypes state is array #15

Closed tingerrr closed 6 months ago

tingerrr commented 6 months ago

When no custom dtypes are added the state is none, this PR ensures that, where the state is read it will be an empty array in that case.

Alternatively, we could add the built-in types alongside how they are displayed (the colors and links to the API). Up to you if you prefer that approach, it comes with the upside of also being able to customize built-in colors.

Relate discussion: https://github.com/jneug/typst-mantys/issues/11#issuecomment-2084701237