-
Notifications
You must be signed in to change notification settings - Fork 16
typescript-eslint v6 + prettier 3.0 #1805
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
Changes from all commits
7a029a1
6ce06f8
0f8e1af
1a82268
3a940ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,11 +69,6 @@ export const paginated = <P extends PaginateOptions, I extends { id: string }>( | |
| export const repeat = <T extends { id: string; name: string }>(obj: T, n: number): T[] => | ||
| new Array(n).fill(0).map((_, i) => ({ ...obj, id: obj.id + i, name: obj.name + i })) | ||
|
|
||
| export const clone = <T extends object>(obj: T): T => | ||
| typeof structuredClone !== 'undefined' | ||
| ? structuredClone(obj) | ||
| : JSON.parse(JSON.stringify(obj)) | ||
|
|
||
|
Collaborator
Author
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 kind of interesting — my switch to |
||
| export function getStartAndEndTime(params: { startTime?: Date; endTime?: Date }) { | ||
| // if no start time or end time, give the last 24 hours. in this case the | ||
| // API will give all data available for the metric (paginated of course), | ||
|
|
||
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 an issue anymore, that's nice