buffer-layout icon indicating copy to clipboard operation
buffer-layout copied to clipboard

Add typescript definitions

Open jstarry opened this issue 3 years ago • 5 comments

Problem

There are no type definitions available for TypeScript users

jstarry avatar Jul 08 '21 15:07 jstarry

@pabigot I'd like to tackle this by migrating the project to use TypeScript and auto-generate the type definitions. Is this a change you would accept?

jstarry avatar Jul 11 '21 00:07 jstarry

I don't know; I did play with TypeScript a while back, but not enough to use it. Depends on how much of a maintenance impact it has.

pabigot avatar Jul 11 '21 02:07 pabigot

+1 would like this as well

bmeeder22 avatar Oct 13 '21 17:10 bmeeder22

+1 it's must have for this kind of lib.

dfl-zeke avatar Oct 15 '21 23:10 dfl-zeke

@bmeeder22 @dfl-zeke just a heads up that Solana maintains a separate fork and npm package @solana/buffer-layout that you can use for TypeScript types until those changes are upstreamed into this repo. You can find it here: https://github.com/solana-labs/buffer-layout

jstarry avatar Oct 19 '21 15:10 jstarry