Partial classes
Problem
Add support of partial classes. Mixins is not the same, because it's run-time realization. Need compile realization, where partial classes will be combine into one before converting typescript to javascript. [code block] will be: [code block]
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Partial classes
A use case for partial classes is for generated proxy classes. E.g. WebAPI or SignalR wrappers. It would be really nice to be able to extend the generated proxy classes with custom logic. Especially when generating classes for models it would be nice to be able to attach business logic directly to the model classes returned from the api.
Trust Score
6 verifications
- 1
A use case for partial classes is for generated proxy classes. E.g. WebAPI or Si
A use case for partial classes is for generated proxy classes. E.g. WebAPI or SignalR wrappers. It would be really nice to be able to extend the generated proxy classes with custom logic. Especially when generating classes for models it would be nice to be able to attach business logic directly to the model classes returned from the api.
Validation
Resolved in microsoft/TypeScript GitHub issue #563. Community reactions: 15 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep