gorse-io / gorse

Gorse open source recommender system engine
https://gorse.io
Apache License 2.0
8.49k stars 778 forks source link

TS调用getItemNeighbors返回的类型有误 #827

Open night-breeze888 opened 5 months ago

night-breeze888 commented 5 months ago

gorse.getItemNeighbors()方法返回的类型提示是string[],但实际上是{ Id: string; Score: number; }[]

Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


The type hint returned by the gorse.getItemNeighbors() method is string[], but it is actually { Id: string; Score: number; }[]