diff --git a/internal/generator/runer_generate_service.go b/internal/generator/runer_generate_service.go index 89d3585..0e66d6d 100644 --- a/internal/generator/runer_generate_service.go +++ b/internal/generator/runer_generate_service.go @@ -140,7 +140,7 @@ func (r *Runner) generateTypescriptServiceAbstractClass(generatedFileStream *pro returnType = "Promise" } - r.P(generatedFileStream, "protected abstract "+methodName+"(call: "+callType+"): "+returnType) + r.P(generatedFileStream, "public abstract "+methodName+"(call: "+callType+"): "+returnType) } r.indentLevel -= 2 diff --git a/tests/__tests__/generated/Flavors.ts b/tests/__tests__/generated/Flavors.ts index 82ba371..91fd554 100644 --- a/tests/__tests__/generated/Flavors.ts +++ b/tests/__tests__/generated/Flavors.ts @@ -140,7 +140,7 @@ export namespace Flavors { ) } - protected abstract Find( + public abstract Find( call: grpc.ServerUnaryCall ): Promise } diff --git a/tests/__tests__/generated/Test.ts b/tests/__tests__/generated/Test.ts index 31d1831..e3fa556 100644 --- a/tests/__tests__/generated/Test.ts +++ b/tests/__tests__/generated/Test.ts @@ -541,16 +541,16 @@ export namespace Foo { ) } - protected abstract Find( + public abstract Find( call: grpc.ServerUnaryCall ): Promise - protected abstract FindClientStream( + public abstract FindClientStream( call: grpc.ServerReadableStream ): Promise - protected abstract FindServerStream( + public abstract FindServerStream( call: grpc.ServerWritableStream ): Promise - protected abstract FindBidiStream( + public abstract FindBidiStream( call: grpc.ServerDuplexStream ): Promise }