chhoumann / quickadd

QuickAdd for Obsidian
https://quickadd.obsidian.guide
MIT License
1.48k stars 135 forks source link

Fix typing error in suggester #605

Closed mProjectsCode closed 5 months ago

mProjectsCode commented 9 months ago

It seems like there was an error in the types of the suggester function. The functions seems to be used to map the elements to a string array, so the lambda should return a string, as it is called on every element in the array.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quickadd ✅ Ready (Inspect) Visit Preview Nov 13, 2023 8:42pm
mProjectsCode commented 9 months ago

The docs are also wrong, but idk how to update them or if they are auto-generated, so I didn't change them.

mProjectsCode commented 9 months ago

https://quickadd.obsidian.guide/docs/QuickAddAPI#suggester-displayitems-string--value-string-index-number-arr-string--string-actualitems-string-promisestring