Search Terms
Suggestion
- TS already have
namespace. Why it cannot have partial class only valid in namespace and in same module (like internal)?
- Partial classes may be distinct from C# implementation.
One partial class may require declaration/implementation from another, otherwise compilation should fail.
Use Cases
- Code generation tools: ATM there is no way to extend TypeScript compiler with custom resolvers, build hooks or anything.
- Without this feature most of preconditions cannot be checked at build time and everything must be checked at boot or even worse at runtime.
Examples
- There are nice examples in the wild, VS and C# can be one well known.
- My specific use case will be to rendering GraphQL schema into partial classes, you will only implement resolvers. All checked ✔️
(Yes. Current approaches are really bad on server.)
Checklist
My suggestion meets these guidelines:
Search Terms
Suggestion
namespace. Why it cannot havepartialclass only valid innamespaceand in same module (like internal)?One partial class may require declaration/implementation from another, otherwise compilation should fail.
Use Cases
Examples
(Yes. Current approaches are really bad on server.)
Checklist
My suggestion meets these guidelines: