Skip to content

Commit

Permalink
#94 generate type imports in grpc-client
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm committed Apr 6, 2021
1 parent 541877f commit 8d77a32
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 60 deletions.
10 changes: 5 additions & 5 deletions packages/example-node-grpc-client/service-example.grpc-client.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// @generated by protobuf-ts 2.0.0-alpha.12 with parameters client_grpc1,generate_dependencies,optimize_code_size
// @generated by protobuf-ts 2.0.0-alpha.18 with parameters client_grpc1,generate_dependencies,optimize_code_size
// @generated from protobuf file "service-example.proto" (package "spec", syntax proto3)
// tslint:disable
import { ExampleService } from "./service-example";
import { BinaryWriteOptions } from "@protobuf-ts/runtime";
import { BinaryReadOptions } from "@protobuf-ts/runtime";
import { ExampleResponse } from "./service-example";
import { ExampleRequest } from "./service-example";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { ExampleResponse } from "./service-example";
import type { ExampleRequest } from "./service-example";
import * as grpc from "@grpc/grpc-js";
/**
* @generated from protobuf service spec.ExampleService
Expand Down
2 changes: 1 addition & 1 deletion packages/example-node-grpc-client/service-example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.0.0-alpha.12 with parameters client_grpc1,generate_dependencies,optimize_code_size
// @generated by protobuf-ts 2.0.0-alpha.18 with parameters client_grpc1,generate_dependencies,optimize_code_size
// @generated from protobuf file "service-example.proto" (package "spec", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
Expand Down
5 changes: 5 additions & 0 deletions packages/example-node-grpc-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"skipLibCheck": false,

// activated for issue #94
// svelte requires this option
"importsNotUsedAsValues": "error",

"lib": [
"es2017",
"dom"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.0.0-alpha.8 with parameters server_grpc1,client_none,generate_dependencies,optimize_code_size
// @generated by protobuf-ts 2.0.0-alpha.18 with parameters server_grpc1,client_none,generate_dependencies,optimize_code_size
// @generated from protobuf file "service-example.proto" (package "spec", syntax proto3)
// tslint:disable
import { ExampleResponse } from "./service-example";
Expand Down
2 changes: 1 addition & 1 deletion packages/example-node-grpc-server/service-example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.0.0-alpha.8 with parameters server_grpc1,client_none,generate_dependencies,optimize_code_size
// @generated by protobuf-ts 2.0.0-alpha.18 with parameters server_grpc1,client_none,generate_dependencies,optimize_code_size
// @generated from protobuf file "service-example.proto" (package "spec", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
Expand Down
5 changes: 5 additions & 0 deletions packages/example-node-grpc-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"skipLibCheck": false,

// activated for issue #94
// svelte requires this option
"importsNotUsedAsValues": "error",

"lib": [
"es2017",
"dom"
Expand Down
104 changes: 52 additions & 52 deletions packages/plugin/src/code-gen/service-client-generator-grpc.ts

Large diffs are not rendered by default.

0 comments on commit 8d77a32

Please sign in to comment.