Skip to content

Commit

Permalink
refactor: use unknown instead of any (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix authored Nov 2, 2024
1 parent 099f8cc commit 811e823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export {
buildFromOxlintConfigFile,
} from './build-from-oxlint-config.js';

type UnionToIntersection<U> = (U extends any ? (x: U) => void : never) extends (
x: infer I
) => void
type UnionToIntersection<U> = (
U extends unknown ? (x: U) => void : never
) extends (x: infer I) => void
? I
: never;

Expand Down

0 comments on commit 811e823

Please sign in to comment.