-
Notifications
You must be signed in to change notification settings - Fork 370
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
refactor: [M3-8244] - Remove suppressImplicitAnyIndexErrors
and ignoreDeprecations
Typescript Options
#10755
Changes from all commits
1754b9a
07db437
b763bdd
d2d4c1d
15f13e9
ee2b50e
a8139dd
97ee5ed
1047e90
937eb3f
adeb30a
5511ff9
ff20337
bd82d8f
7829fe2
7987812
0bcdae0
1718759
7b9b7ee
d77447c
9aaa746
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@linode/manager": Tech Stories | ||
--- | ||
|
||
Remove `suppressImplicitAnyIndexErrors` and `ignoreDeprecations` Typescript Options ([#10755](https://github.com/linode/manager/pull/10755)) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ import { | |
updateGlobalFilterPreference, | ||
} from '../Utils/UserPreference'; | ||
|
||
import type { TimeDuration } from '@linode/api-v4'; | ||
import type { | ||
BaseSelectProps, | ||
Item, | ||
|
@@ -136,14 +135,3 @@ export const generateStartTime = (modifier: Labels, nowInSeconds: number) => { | |
return nowInSeconds - 30 * 24 * 60 * 60; | ||
} | ||
}; | ||
|
||
/** | ||
* | ||
* @param label label for time duration to get the corresponding time duration object | ||
* @returns time duration object for the label | ||
*/ | ||
export const getTimeDurationFromTimeRange = (label: string): TimeDuration => { | ||
const options = generateSelectOptions(); | ||
|
||
return options[label] || { unit: 'min', vlaue: 30 }; | ||
}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was removing this intentional or did we just move it somewhere else? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was intentional. The types didn't make any sense (it will need to be rewritten for it to work) and the code was unused. |
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.
π₯