Typescript Types
Hello!
I am new to Solace and I was trying to implement Solace with typescript and I ran into a problem with it not having types.
Are there any future plans to have types for solace available?
And also are there any tips for working with solace in TypeScript?
Tagged:
Comments
Hi @pedroDimas,
There currently aren't any types for Solace available. We have a CodeLab course that walks you through building an application using Typescript/Solace's JavaScript API, and you can find that here: https://codelabs.solace.dev/codelabs/solace-battleship/index.html#0
I'm glad you're giving Solace a try
If you're new to event-driven architecture I recommend following along with the course in its entirety, but if you're just looking for some code, here's a direct link to a wrapper around our JS client to give you some ideas: https://github.com/SolaceTraining/solace-battleship/blob/battleship-lesson-9-implement-match-logic-in-scs/battleship_frontend/src/common/solace-client.ts
I'll let our product team chime in if they have any more details around when/if we're going to add types in the future.
Thank you!
I will try your code lab course!
That's great @pedroDimas ! Interested to hear your feedback when you go through the codelab and if you have nay further contributions/questions.