From 5c357fcb4a6b456e77196bda4c988cc06876a8c8 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Sun, 21 May 2023 09:14:24 +0200 Subject: [PATCH] code style --- source/non-empty-object.d.ts | 2 +- test-d/non-empty-object.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/non-empty-object.d.ts b/source/non-empty-object.d.ts index 745356afd..8b40741b2 100644 --- a/source/non-empty-object.d.ts +++ b/source/non-empty-object.d.ts @@ -27,4 +27,4 @@ const update2: UpdateRequest = {}; // that's a bug! */ export type NonEmptyObject = { [K in keyof T]-?: Pick, K> -}[keyof T] +}[keyof T]; diff --git a/test-d/non-empty-object.ts b/test-d/non-empty-object.ts index 8595a73bf..d96a51c2e 100644 --- a/test-d/non-empty-object.ts +++ b/test-d/non-empty-object.ts @@ -29,6 +29,6 @@ declare const test3: NonEmptyObject3; declare const test4: NonEmptyObject4; expectType(test1); -expectType<{a: string; b?: boolean}|{a?: string; b: boolean}>(test2); -expectType(test3); +expectType<{a: string; b?: boolean} | {a?: string; b: boolean}>(test2); +expectType(test3); expectType(test4);