-
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
[APM] Migrate charts to typescript #25514
Conversation
c2257ff
to
3ce8392
Compare
💔 Build Failed |
💔 Build Failed |
interface Coordinate { | ||
x: number; | ||
y?: number | null; | ||
} |
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.
Not sure if Coordinate
is the correct term. LMK if you have something more apt.
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.
Seems ok to me
3ce8392
to
1239fe4
Compare
tsconfig.json
Outdated
@@ -1,5 +1,6 @@ | |||
{ | |||
"compilerOptions": { | |||
"resolveJsonModule": true, |
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.
@mattapperson Following up on #24425 I've added support for importing json files but disabled it for the browser (see tsconfig.browser.json
).
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.
🎉
💔 Build Failed |
💔 Build Failed |
522ef1e
to
767af9a
Compare
💔 Build Failed |
767af9a
to
e2cf2b7
Compare
💔 Build Failed |
9678017
to
f0dad8b
Compare
💚 Build Succeeded |
💚 Build Succeeded |
f0dad8b
to
09706dd
Compare
09706dd
to
07801ba
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.
Just a couple comments/questions/suggestions but nothing that blocks a merge. Nice work!
@@ -47,11 +62,23 @@ export function getCharts(urlParams, charts) { | |||
}; | |||
} | |||
|
|||
export function getResponseTimeSeries(chartsData) { | |||
interface TimeSerie { |
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 think TimeSeries would be fine (series is singular and plural) 😄
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 was actually wondering about that. "timeserie" sounded weird. Thanks!
interface Coordinate { | ||
x: number; | ||
y?: number | null; | ||
} |
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.
Seems ok to me
@@ -0,0 +1,10 @@ | |||
/* |
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 assume this is because we're using the types from our old lodash version and so we don't have the type for this individual lodash.mean package?
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.
Yeah, I tried installing @types/lodash.mean
and it's expecting mean
to be in lodash
(which it's only for 4.x)
Closing in favor of #25848 |
No description provided.