-
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
Change the input type for @kbn/config-schema to work with more schemas #60007
Change the input type for @kbn/config-schema to work with more schemas #60007
Conversation
Pinging @elastic/endpoint-app-team (Feature:Endpoint) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
* master: Endpoint: Change the input type for @kbn/config-schema to work with more schemas (elastic#60007) Using re2 for Timelion regular expressions (elastic#55208) [Monitoring] Re-enable logstash tests (elastic#59815) fix karma debug typo (elastic#60029) Adds telemetry support to alerting and actions plugins (elastic#58081)
Friendly reminder: Looks like this PR hasn’t been backported yet. |
5 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
This PR modifies the 'input type' we use to type query params and POST bodies when hitting the API from the client.
@kbn/config-schema
sometimes returns types with deeply nestedType
types, and sometimes it does not. This will always useTypeOf
first, and then modify that type.This is also good because now we only rely on the parts of
@kbn/config-schema
that were intended to be public, and our types take normal TS types, not special@kbn/config-schema
ones.For maintainers