Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
robmonie committed Jun 5, 2024
1 parent 5cbef35 commit 0e920f1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -603,12 +603,11 @@ export interface User {
}
```
- With `--ts_proto_opt=noDefaultsForOptionals=true`, `undefined` primitive values will not be defaulted as per the protobuf spec. Additionally unlike the standard behavior, when a field is set to it's standard default value, it *will* be encoded allowing them to be sent over the wire and distinguished from undefined values. For example if a message does not set a boolean value, ordinarily this would be defaulted to `false` which is different to it being undefined.
- With `--ts_proto_opt=noDefaultsForOptionals=true`, `undefined` primitive values will not be defaulted as per the protobuf spec. Additionally unlike the standard behavior, when a field is set to it's standard default value, it *will* be encoded allowing it to be sent over the wire and distinguished from undefined values. For example if a message does not set a boolean value, ordinarily this would be defaulted to `false` which is different to it being undefined.
This option allows the library to act in a compatible way with the [Wire implementation](https://square.github.io/wire/) maintained and used by Square/Block. Note: this option should only be used in combination with other client/server code generated using Wire or ts-proto with this option enabled.
### NestJS Support
We have a great way of working together with [nestjs](https://docs.nestjs.com/microservices/grpc). `ts-proto` generates `interfaces` and `decorators` for you controller, client. For more information see the [nestjs readme](NESTJS.markdown).
Expand Down
Binary file removed integration/extension-import/base.bin
Binary file not shown.
Binary file removed integration/extension-import/extension.bin
Binary file not shown.
1 change: 0 additions & 1 deletion integration/extension-import/index.foo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@

export * from "./base";
export * from "./extension";

0 comments on commit 0e920f1

Please sign in to comment.