-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionOut of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds
Description
At the moment:
class Article {
@Relation
author: OneRelation<User>;
}
emits:
__metadata('design:type', OneRelation)
My suggestion is that that instead of just type it would also include the type args.
Maybe something like this:
__metadata('design:type', {type: OneRelation, args: [{type: User, args: []}])
With the latter i don't have to repeat myself in decorator that this is a one relation to user as i have already specified this in type.
Thanks,
Reio
icholy, izatop, remmeier, joesonw, NotIntMan and 5 moreremmeier, PBartrina, MichalLytek, nicolasgere, scosc and 1 more
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionOut of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds