Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Explicit typings for request handler context #88718

Merged
merged 50 commits into from
Jan 21, 2021
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
bb2cd94
move context to server part. couple with RequestHandlerContext
mshustov Jan 19, 2021
58387da
adopt core code
mshustov Jan 19, 2021
3e90e00
adopt bfetch code
mshustov Jan 19, 2021
4554253
adopt data code
mshustov Jan 19, 2021
e9eaf0a
adopt search examples
mshustov Jan 19, 2021
3348748
adopt vis_type_timelion
mshustov Jan 19, 2021
ccfcdca
adopt vis_type_timeseries
mshustov Jan 19, 2021
c800642
adopt plugin functional tests
mshustov Jan 19, 2021
33c45b2
adopt actions
mshustov Jan 19, 2021
258e3c1
adopt alerting plugin
mshustov Jan 19, 2021
b8016bc
adopt APM plugin
mshustov Jan 19, 2021
b3b0f1b
adopt beats_management
mshustov Jan 19, 2021
0f6f622
adopt case plugin
mshustov Jan 19, 2021
dfc44f6
adopt cross_cluster_replication
mshustov Jan 19, 2021
bedd6d0
adopt data_enhanced
mshustov Jan 19, 2021
274620d
adopt event_log
mshustov Jan 19, 2021
3cec9b2
adopt global_search
mshustov Jan 19, 2021
f635ed7
adopt index_management
mshustov Jan 19, 2021
adab1bc
adopt infra
mshustov Jan 19, 2021
96b4960
adopt licensing
mshustov Jan 19, 2021
036f3dd
adopt lists
mshustov Jan 19, 2021
5aa208e
adopt logstash
mshustov Jan 19, 2021
929efc2
adopt reporting
mshustov Jan 19, 2021
02172f1
adopt observability
mshustov Jan 19, 2021
f148f70
adopt monitoring
mshustov Jan 19, 2021
44aa3ec
adopt rollup
mshustov Jan 19, 2021
9a0bb86
adopt so tagging
mshustov Jan 19, 2021
75027b6
adopt security
mshustov Jan 19, 2021
0ea1243
adopt security_solutions
mshustov Jan 19, 2021
42d36f8
adopt watcher
mshustov Jan 19, 2021
d2f764e
adopt uptime
mshustov Jan 19, 2021
8a9770b
adopt spaces
mshustov Jan 19, 2021
eb8201b
adopt snapshot_restore
mshustov Jan 19, 2021
03b64f8
adopt features changes
mshustov Jan 19, 2021
e8990d5
Merge branch 'master' into explicit-request-hanlder-context
mshustov Jan 19, 2021
5faa2ef
mute error when null used to extend context
mshustov Jan 19, 2021
3e50c43
update docs
mshustov Jan 19, 2021
bb08a9f
small cleanup
mshustov Jan 19, 2021
298aec1
add type safety for return type
mshustov Jan 20, 2021
4633b39
refactor registerRouteHandlerContext type
mshustov Jan 20, 2021
6bfe83e
update docs
mshustov Jan 20, 2021
68aeb37
Merge branch 'master' into explicit-request-hanlder-context
mshustov Jan 20, 2021
84163ae
update license header
mshustov Jan 20, 2021
3639947
update docs
mshustov Jan 20, 2021
73cfc08
fix type error. fetch body does not accept array of strings
mshustov Jan 20, 2021
30c9c49
fix telemetry test
mshustov Jan 20, 2021
6334f55
remove unnecessary ts-ignore
mshustov Jan 20, 2021
f389948
Merge branch 'master' into explicit-request-hanlder-context
mshustov Jan 21, 2021
f2750b8
address comments
mshustov Jan 21, 2021
3185d54
update docs
mshustov Jan 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adopt bfetch code
  • Loading branch information
mshustov committed Jan 19, 2021
commit 3e90e002ca139195e60ee9108b033aa2a0988b7d
11 changes: 9 additions & 2 deletions src/plugins/bfetch/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,16 @@ export interface BfetchServerSetup {
*
* @param streamHandler
*/
createStreamingRequestHandler: <Response, P, Q, B, Method extends RouteMethod = any>(
createStreamingRequestHandler: <
Response,
P,
Q,
B,
Context extends object = object,
Method extends RouteMethod = any
>(
streamHandler: StreamingRequestHandler<Response, P, Q, B, Method>
) => RequestHandler<P, Q, B, Method>;
) => RequestHandler<P, Q, B, Context, Method>;
}

// eslint-disable-next-line
Expand Down