question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid [ExportTsInterface] attributes with tgconfig.json scanning (feature request)

See original GitHub issue

Hi,

This is a feature request.

It would be nice to avoid having to add [ExportTsInterface] (or [ExportTsClass]) attributes on C# models. Ideally if there would be a way to provide a regex/namespace scanning expression for TypeGen to know what C# models to generate from.

The recently added customTypeMappings in tgconfig.json (#36) brings us even closer to avoid attributes is most cases.

What do you think?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jburzynskicommented, Dec 7, 2018

Hey, it’s an interesting feature. I’ll add it to the ‘backlog’ and try to integrate it to what already exists. If it doesn’t take too much work to implement, it will probably be in the next release. Don’t expect the next release to be very soon though - this one may take a little more time to do (probably more than a couple of days). But whenever I manage to do something, I’ll let you know in this thread. Cheers!

0reactions
jburzynskicommented, Jan 15, 2019

Nice find! I’ll also add this filter when generating types from assembly (attribute or GenerationSpec)

– EDIT Added in version 2.1.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found