Skip to content

Commit 663365c

Browse files
committed
Fix: indentation with the new xo config
1 parent 4e41c40 commit 663365c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/is-literal.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ type LiteralCheck<T, LiteralType extends Primitive> = (
4444
IsNever<T> extends false // Must be wider than `never`
4545
? [T] extends [LiteralType & infer U] // Remove any branding
4646
? And<
47-
Extends<U, LiteralType>, // Must be narrower than `LiteralType`
48-
Not<Extends<LiteralType, U>> // Cannot be wider than `LiteralType`
47+
Extends<U, LiteralType>, // Must be narrower than `LiteralType`
48+
Not<Extends<LiteralType, U>>, // Cannot be wider than `LiteralType`
4949
>
5050
: false
5151
: false
@@ -74,9 +74,9 @@ type LiteralChecks<T, LiteralUnionType> = (
7474
// If `T` is none of the literal types in the union `LiteralUnionType`, then `LiteralCheck<T, LiteralType>` will evaluate to `false` for the whole union.
7575
// If `T` is one of the literal types in the union, it will evaluate to `boolean` (i.e. `true | false`)
7676
IsNotFalse<
77-
LiteralUnionType extends Primitive
78-
? LiteralCheck<T, LiteralUnionType>
79-
: never
77+
LiteralUnionType extends Primitive
78+
? LiteralCheck<T, LiteralUnionType>
79+
: never
8080
>
8181
);
8282

@@ -207,11 +207,11 @@ endsWith('abc123', end);
207207
@category Utilities
208208
*/
209209
export type IsNumericLiteral<T> = IsTrue<
210-
T extends number
211-
? T extends bigint
212-
? LiteralCheck<T, Numeric>
213-
: LiteralCheck<T, number>
214-
: LiteralCheck<T, bigint>
210+
T extends number
211+
? T extends bigint
212+
? LiteralCheck<T, Numeric>
213+
: LiteralCheck<T, number>
214+
: LiteralCheck<T, bigint>
215215
>;
216216

217217
/**

0 commit comments

Comments
 (0)