Adding Decorators for comments

This commit is contained in:
K35
2022-01-01 18:47:34 +00:00
parent 579055d8fb
commit 4e389dc472
7 changed files with 145 additions and 15 deletions

View File

@ -26,9 +26,20 @@ type AddValueResponse {
}
service TestService {
@Description("Add two numbers")
@Param("request", "Parameter containing the two numbers")
AddValuesSingleParam(request: AddValueRequest): AddValueResponse;
@Description("Add two numbers")
@Param("value1", "The first value")
@Param("value2", "The second value")
AddValuesMultipleParams(value1: number, value2: number): number;
@Description("Does literaly nothing")
@Param("param1", "Some number")
ReturningVoid(param1: number): void;
@Description("Just sends an Event with a String")
@Param("param1", "Parameter with some string for event")
notification OnEvent(param1: string);
}