19 Commits

Author SHA1 Message Date
Kairlec
8aad1dd994
feat: allow message.getTypeUrl provide custom typeUrlPrefix (#1762)
* feat: allow message.getTypeUrl provide custom tyepUrlPrefix

* Update static.js

* test: added tests, regenerated test files

Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-07 14:10:58 -07:00
Taylor McIntyre
d13d5d5688
feat: add getTypeUrl method to generated code (#1463)
* Add getTypeUrl method to static-module generated code

* add tests for getTypeUrl method
2021-05-21 15:53:03 -07:00
dcodeIO
2c5ef95818 CLI: Extend list of ignored ESLint rules for pbjs, fixes #1085 2018-07-17 22:28:03 +02:00
dcodeIO
19d2af12b5 CLI: Make sure enum typings become generated (#884 didn't solve this); Other: Update tests 2017-11-24 18:15:12 +01:00
dcodeIO
ed7e2e71f5 CLI: Accept null for optional fields in generated static code 2017-07-11 17:54:41 +02:00
dcodeIO
13bf9c2635 CLI: Various improvements to statically generated JSDoc, also fixes #772 2017-04-22 00:27:33 +02:00
dcodeIO
03194c203d Use JSDoc, they said, it documents code, they said. Fixes #770 2017-04-21 15:29:36 +02:00
dcodeIO
c97b618112 Breaking: Everything uses interfaces now instead of typedefs (SomethingProperties is now ISomething) 2017-04-15 19:29:31 +02:00
dcodeIO
7a6f98b5e7 Breaking: Initial implementation of TypeScript decorators; Breaking: Refactored protobuf.Class away; Breaking: TypeScript definitions now have (a lot of) generics; Breaking: Removed deprecated features; Other: tsd-jsdoc now has limited generics support 2017-04-10 17:17:27 +02:00
dcodeIO
bed514290c CLI: With null/undefined eliminated by constructors and .create, document message fields as non-optional where applicable (ideally used with TS & strictNullChecks), see #743 2017-04-04 10:23:52 +02:00
dcodeIO
8de21e1a94 CLI: $Properties are just a type that's satisfied, not implemented, by classes, see #723 2017-03-27 00:45:58 +02:00
dcodeIO
afefa3de09 CLI: Properly implement $Properties interface in JSDoc, see #723 2017-03-24 03:33:10 +01:00
dcodeIO
c04d4a5ab8 New: Implemented stubs for long.js / node buffers to be used where either one isn't wanted, see #718 2017-03-23 23:15:08 +01:00
dcodeIO
a75625d176 CLI: Decoupled message properties as an interface in static code for TS intellisense support, see #717 2017-03-23 17:27:02 +01:00
dcodeIO
588ffd9b12 Other: Use more precise types for message-like plain objects 2017-03-21 23:13:46 +01:00
dcodeIO
fe917652f8 Other: Updated tests to use new simplified encoder logic 2017-03-20 20:30:25 +01:00
dcodeIO
3ead13e83e Other: Added tslint 2017-03-09 03:58:54 +01:00
dcodeIO
7c3506b3f0 Fixed: Post-merge, also tackles #683 2017-02-23 04:07:08 +01:00
dcodeIO
27b16351f3 Breaking: Reflected and statically generated services use common utility, now work exactly the same 2017-01-21 19:41:55 +01:00