efrt
efrt copied to clipboard
Are there plans to support Typescript
Have you considered adding Typescript types for this library to better support Typescript projects using this library?
oh hey David, fellow Torontonian - yeah sure - I can put a types file in, or I'd welcome a pr cheers
Awesome stuff, I'm still not too sure how the types are implemented on the library level, I'm guessing it's just a file? In the other PR I posted my version of the unpack function. I think for your current API it should be as simple as implementing two functions right? Something along the lines of:
pack (s: string[] | Record<string, string>): string
unpack (s: string): Record<string, string>