obsidianmd / obsidian-api

Type definitions for the latest Obsidian API.
https://docs.obsidian.md
MIT License
1.65k stars 192 forks source link

Bug: type definition for ColorComponent is missing property with HtmlElement #158

Closed srg-kostyrko closed 3 months ago

srg-kostyrko commented 3 months ago

I see in console output that ColorComponent has link to corresponding html element (similar to other components) called colorPickerEl but type definition does not have this property defined.

lishid commented 3 months ago

This is intentional. The API does not expose private or internal parts that are not intended for public use, because it may be changed around, renamed, etc in the future without notice. Of course the private fields are available at runtime so you can ignore the typing and use it directly at your own risk.