-
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
Convert to TypeScript ui/field_formats #44370
Conversation
dcf39ff
to
27efc29
Compare
34a46c0
to
f15f0fb
Compare
f15f0fb
to
a4d79be
Compare
a4d79be
to
ca56356
Compare
ca56356
to
de5a9e3
Compare
cfa5373
to
b782282
Compare
52057fe
to
a8b07e5
Compare
a8b07e5
to
e5be702
Compare
e5be702
to
079c00a
Compare
079c00a
to
1017234
Compare
retest |
💚 Build Succeeded |
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.
LGTM, tested on chrome linux
Pinging @elastic/kibana-app-arch |
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.
Tested and working.
Added some TS questions.
// @ts-ignore | ||
import { getHighlightHtml } from '../../../core_plugins/kibana/common/highlight/highlight_html'; | ||
|
||
type HtmlConventTypeConvert = ( |
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.
Could we TS this better?
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.
I've added interface for Field property.
src/legacy/ui/field_formats/types.ts
Outdated
|
||
export type ContentType = 'html' | 'text'; | ||
|
||
export interface IFieldFormat { |
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.
// brain-pick
Could we benefit from using generics here?
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.
9be1870
to
2ffe554
Compare
💚 Build Succeeded |
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.
LGTM
💚 Build Succeeded |
@elastic/ml-ui can you please take a look? |
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.
ML changes LGTM
* Convert to TypeScript ui/field_formats * Fix PR comments * Fix PR comments
Partially fix #43439
Summary
What was done in this PR:
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers