-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Move @kbn/config-schema
to server] examples/response_stream
#189520
[Move @kbn/config-schema
to server] examples/response_stream
#189520
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -7,5 +7,4 @@ | |||
*/ | |||
|
|||
export { reducerStreamReducer } from './reducer'; | |||
export { reducerStreamRequestBodySchema } from './request_body_schema'; | |||
export type { ReducerStreamRequestBodySchema } from './request_body_schema'; | |||
export type { ReducerStreamRequestBodySchema } from '../../../server/routes/schemas/reducer_stream'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was in common
originally because just the type was reused on the client (which shouldn't leak the whole lib). It looks like this usage is no longer the case so I think you can remove this export from common
.
@@ -6,5 +6,4 @@ | |||
* Side Public License, v 1. | |||
*/ | |||
|
|||
export { simpleStringStreamRequestBodySchema } from './request_body_schema'; | |||
export type { SimpleStringStreamRequestBodySchema } from './request_body_schema'; | |||
export type { SimpleStringStreamRequestBodySchema } from '../../../server/routes/schemas/simple_string_stream'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, it looks like this can be removed from common
altogether.
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @afharo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest changes LGTM, thanks!
Summary
Part of #189476.
We want to avoid
@kbn/config-schema
from leaking to the browser.For maintainers