Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
psoleckimoj committed Dec 6, 2023
1 parent f1a15a2 commit 99488ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/@types/pingdom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] }
/** OneOf type helpers */
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never }
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U
type OneOf<T extends any[]> = T extends [infer Only]
type OneOf<T extends Record<string, unknown>[]> = T extends [infer Only]
? Only
: T extends [infer A, infer B, ...infer Rest]
? OneOf<[XOR<A, B>, ...Rest]>
Expand Down
2 changes: 1 addition & 1 deletion server/services/pingdomService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { PingdomApiClient, RestClientBuilder } from '../data'
import { Check, Checks } from '../data/pingdomApiTypes'
import { Checks } from '../data/pingdomApiTypes'

export default class PingdomService {
constructor(private readonly pingdomApiClientFactory: RestClientBuilder<PingdomApiClient>) {}
Expand Down

0 comments on commit 99488ce

Please sign in to comment.