Comments (5)
Work like a charm, thank you :) Działa pięknie, ja ponimaju trochę też ;) Closing!
from reinforced.typings.
x => x.Returns<string>()
- is just sample that you can configure export settings for bunch of methods. You can entirely remove this parameter of .WithMethods to make it simply export methods without additional actions.
Like that:
var types = new Type[0]; // fetch desired types by yourself
builder.ExportAsInterfaces(types,
c => c.WithMethods( x => x.IsPublic && !(x.Name.StartsWith("Begin") || x.Name.StartsWith("End")))
);
from reinforced.typings.
var types = new Type[0]; // fetch desired types by yourself
builder.ExportAsInterfaces(types,
c => c.WithMethods(
x => x.IsPublic && !(x.Name.StartsWith("Begin") || x.Name.StartsWith("End")),
x => x.Returns<string>()
)
);
from reinforced.typings.
I've got minor problem with this solution:
x => x.Returns<string>()
Now every interface has a hard-coded string return type. Could we keep proper return type?
from reinforced.typings.
Of course... Great, thanks :-)
from reinforced.typings.
Related Issues (20)
- Invalid code generated when C# code inherits from generic
- v1.6.1 does not support .NET 7 HOT 23
- Invalid code generated for explicit interface member implementation
- Export public static properties of static class to enum HOT 2
- Add raw line to output file (for example to disable eslint errors) HOT 3
- Is it possible to generate union?
- RT0999: Input string was not in a correct format.
- Are SDK Projects supported? HOT 3
- MSB6006 "" exited with code -214745073
- Issue when base class is exported as interface HOT 1
- feat: Net8 support HOT 24
- <RtDisable> and <TreatWarningsAsError> not working HOT 1
- Error MSB6006: "" exited with code 1. HOT 2
- The AddImports feature should allow you to select what quotes to use
- Generated Typescript loses information about combined enum flags when using UseString
- Improved compilation of JSDOC
- JSDOC for enums
- Add a custom property to a class HOT 4
- feat: Net9 support
- Empty file generated?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reinforced.typings.