bgg icon indicating copy to clipboard operation
bgg copied to clipboard

Typescript Support

Open chuck-flowers opened this issue 2 years ago • 8 comments

I'd like to be able to use this project within Typescript. The project isn't currently written in Typescript, nor does it have Typescript definitions. Ideally the project should be converted to Typescript, but at a minimum definitions would solve my problem.

chuck-flowers avatar Jun 21 '22 14:06 chuck-flowers

I'm currently in the process of converting the project to Typescript in a fork I created. When I feel I have accomplished this, I will open a PR.

chuck-flowers avatar Jun 21 '22 14:06 chuck-flowers

Hello! Given this project is no longer maintained, I thought I would suggest my new project inspired by this one. It is Typescript first: https://www.npmjs.com/package/bgg-sdk

ColCross avatar Jun 05 '24 17:06 ColCross

well, it's about as maintained at the BGG api :)

monteslu avatar Jun 05 '24 17:06 monteslu

Haha apologies! You're not wrong though

ColCross avatar Jun 05 '24 17:06 ColCross

Didn't expect a response, but just wanted to say thanks for making this original project. Finding it was a big inspiration for me to make my first open source project :). I also gave your project credit in the README.

ColCross avatar Jun 05 '24 17:06 ColCross

that's awesome! When i originally created this fetch wasn't in node and doing http requests was more difficult. The rest package was pretty helpful and it was nice to automatically parse the XML response. I kinda wanted to revisit this and slim it way down at some point, but glad to see someone else moving the idea forward

monteslu avatar Jun 05 '24 17:06 monteslu

@ColCross added a link to your project on this one's readme

monteslu avatar Jun 05 '24 17:06 monteslu

Oh wow, thank you so much! This has made my day haha. I definitely took the opinionated route for mine around the data transforms, but I really wanted to make it more like interacting with a modern JSON api. I doubt we'll be getting one from BGG anytime soon...

ColCross avatar Jun 05 '24 17:06 ColCross