quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

Fix typing error in suggester

Open mProjectsCode opened this issue 1 year ago • 3 comments

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.

mProjectsCode avatar Nov 13 '23 20:11 mProjectsCode

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

vercel[bot] avatar Nov 13 '23 20:11 vercel[bot]

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

mProjectsCode avatar Nov 13 '23 20:11 mProjectsCode

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

mProjectsCode avatar Nov 13 '23 20:11 mProjectsCode