Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement Typescript support? #270

Open
DiegoVega19 opened this issue Oct 2, 2023 · 1 comment
Open

How to implement Typescript support? #270

DiegoVega19 opened this issue Oct 2, 2023 · 1 comment

Comments

@DiegoVega19
Copy link

I wanted to know how can I implement Typescript?
Regards
Awesome package!

@NathanaelA
Copy link
Owner

Not quite sure the question you are asking...

  1. If you are wanting to use this in TypeScript, any JS code works as-is, you just don't get as good of auto-detection of issues/and knowledge of the types. So when you do let rpt = new Report it doesn't know rpt is actually a Report group object...

  2. If you are asking how to actually create a Typings file for FluentReports [would love someone to do so, or pay me to do so], then you have to create a .d.ts file with the class types so that your editor. You might even be able to start with the JSDoc info and have it parsed into a .d.ts file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants