Make export TransactionOptions happen#392
Make export TransactionOptions happen#392wi-ski wants to merge 1 commit intohandshake-org:masterfrom
Conversation
|
@tynes -Is this awful? Can i have this? |
|
Can you expand on your use case a bit? The options are internal to the http module. |
|
Ah - excuse me. I was in a headspace that made me feel like this would be an intended pattern. Im building a plugin and would like to add a new route. Im copy-pasting a handler (in essence) and it would make use of this class - I had naively assumed it (meaning the class) would be exported from somewhere. |
|
Probably worth creating a separate issue on how to handle exporting a class' options it's not possible to use both |
I don't see a particular problem with it as a similar pattern is done elsewhere in the codebase. Its also not an object that is created millions of times. @wi-ski Could you detail the new route you are working on? You also have a linting error |
7d179a2 to
8ba55b6
Compare
|
Updated 👌 |
Codecov Report
@@ Coverage Diff @@
## master #392 +/- ##
==========================================
- Coverage 60.51% 60.51% -0.01%
==========================================
Files 129 129
Lines 34750 34751 +1
Branches 5879 5879
==========================================
Hits 21029 21029
- Misses 13721 13722 +1
Continue to review full report at Codecov.
|
|
Tested ok in REPL: Just fix that newline nit when you get a chance and I'll 👍 |
pinheadmz
left a comment
There was a problem hiding this comment.
Ok just sqaush these into one commit actually
boymanjor
left a comment
There was a problem hiding this comment.
@wi-ski @pinheadmz @tynes I'd like us to prioritize getting #233 merged. Is this PR necessary once we get it in? I'm not sure we expose any other internal, options classes. However, any plugins that wants to create tx related endpoints could benefit from this.
7cbb45c to
fc1b47e
Compare
|
@pinheadmz - Squashed 👐 Lemme know if there's anything else. |
| * Expose | ||
| */ | ||
|
|
||
| HTTP.TransactionOptions = TransactionOptions; |
There was a problem hiding this comment.
dude, sorry to be super annoying about this, but the newline should stay in :-)
I think when you squashed you might've removed the commit that added the newline.
I need this for a plugin