chore: add no-debugger eslint rule (#5906)

This commit is contained in:
Cédric Exbrayat
2022-05-13 01:10:00 +02:00
committed by GitHub
parent 8a123ac34f
commit 9ecee16f89
9 changed files with 23 additions and 29 deletions

View File

@@ -7,7 +7,6 @@ export type UnionToIntersection<U> = (
// make keys required but keep undefined values
export type LooseRequired<T> = { [P in string & keyof T]: T[P] }
// If the the type T accepts type "any", output type Y, otherwise output type N.
// https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
export type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N