While displayTooltip
accepts DocumentFragment
, not just string
, as its second parameter, setTooltip
only accepts string
.
These two functions should share the same parameter types.
Dear Obsidian team, I’d appreciate it if you could update the typings.