mkoryak/floatThead

TypeScript Definitions

jmariller opened this issue · 6 comments

Hello,

Would it be possible to add TypeScript definitions for this library? I find floatThead really great, the only thing missing would be those definitions.

Many thanks!

Done, please see #458.

Most of the credit should go to @InkUisitor who had posted a proposal in DefinitelyTypes which I used as basis for the PR.

I took a closer look to the TS defs, and they looked incorrect. I made an update, can you check if they work or if my bad typescript knowledge is wrong:

f805999#diff-a174240128da7329291c196cd78bc2bf

Thanks for the update - your adjustments are fine!

Two more things:

  • I picked up the wrong attribute for package.json to point at TypeScript definitions file 🤦‍♂️ sorry about that. It's types, not type - opened a new PR, see #460.
  • I believe you need to run build once so the definition file gets copied into dist

PS: cool name for the latest release 😄

Published 2.2.1. Let me know if it works.

Works fine now, thank you very much!