Supporting void function return type

This commit is contained in:
K35
2022-01-01 15:03:43 +00:00
parent 478094f2c3
commit 579055d8fb
7 changed files with 21 additions and 10 deletions

View File

@ -28,6 +28,7 @@ type AddValueResponse {
service TestService {
AddValuesSingleParam(request: AddValueRequest): AddValueResponse;
AddValuesMultipleParams(value1: number, value2: number): number;
ReturningVoid(param1: number): void;
notification OnEvent(param1: string);
}

View File

@ -32,6 +32,10 @@ class TestService extends Server.TestService<undefined> {
return value1 + value2;
}
async ReturningVoid(param1) {
console.log("Calling Returning Void");
}
OnEvent(param1: string, ctx: undefined): void {
console.log("Received notification", param1);
}