Open hache9669 opened 1 year ago
Hello @hache9669 , and thank you for this issue. You are right. There are no such type guards provided for any types in this project.
If you have a set of helpful typeguards and are willing to extend those to cover all types in this project. I am more than happy to review and merge a pull request for this :+1: . I think the only point to discuss would be how we can easily integrate testing for those guards.
Is your feature request related to a problem? Please describe. I imported plantuml-parser in my Next.js app, and I need some of type guards. Now I just written a piece of type guards(only for what I need), and they are in my app project.
eg. When I render UML in browser,
Describe the solution you'd like
As far as I have been able to find in the repository, it does not appear that type guards are provided. If I am mistaken and type guards already exists in the project, please let me know.
May I create a pull request to add the type guard I coded? It might help other users. (although it may not be necessary) Currently I have only created type guards for a few classes I need, but I consider that I can create type guards for all types defined in types.d.ts.
Here is an example of what I have created;