Skip to content

v0.4.7

Latest
Compare
Choose a tag to compare
@freshsomebody freshsomebody released this 05 Jul 15:36
· 15 commits to master since this release

This version should enhance the type supports for TypeScript users.
Sorry that I have missed to export the type declarations for a long time even though this package is already written in TypeScript.

Chore

  • Add the path of type declarations in package.json (a04480e)
  • Configure TypeScript compiler to make type declaration files when building (d7da59c)

Refactor

  • Narrow the string type of Options.strategy to 'cosineSimilarity' | 'cosineDistance' | 'weightedDistance' (dc802d7)
  • Narrow the string type of WeightOption.mode to 'multiply' | 'replace' | 'add' (dc802d7)

Test

  • convertPoseToVectors will throw TypeError if weightOption is invalid (d74ac95)