You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-19
Original file line number
Diff line number
Diff line change
@@ -510,48 +510,44 @@ import { AwesomeMessage } from "./bundle.js";
510
510
// example code
511
511
let message =AwesomeMessage.create({ awesomeField: "hello" });
512
512
let buffer =AwesomeMessage.encode(message).finish();
513
-
let decoded =AweesomeMessage.decode(buffer);
513
+
let decoded =AwesomeMessage.decode(buffer);
514
514
```
515
515
516
516
#### Using decorators
517
517
518
518
The library also includes an early implementation of [decorators](https://www.typescriptlang.org/docs/handbook/decorators.html).
519
519
520
-
**Note** that this API is rather new in protobuf.js (and probably buggy) and that decorators are an experimental subject-to-change-without-notice feature in TypeScript. Also note that declaration order is important depending on the JS target. For example, `@Field.d(2, AwesomeArrayMessage)` requires that `AwesomeArrayMessage` has been defined earlier when targeting `es5`.
520
+
**Note** that this API is rather new in protobuf.js (and probably buggy) and that decorators are an experimental feature in TypeScript. Also note that declaration order is important depending on the JS target. For example, `@Field.d(2, AwesomeArrayMessage)` requires that `AwesomeArrayMessage` has been defined earlier when targeting `ES5`.
0 commit comments