From 9480e820565576192e45f27d88d785ea37de3a32 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 9 Nov 2020 20:43:10 +0200 Subject: [PATCH] Add comment clarifying WithRequiredProps --- backend/src/utils/typeUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/utils/typeUtils.ts b/backend/src/utils/typeUtils.ts index f206795d..619f6cec 100644 --- a/backend/src/utils/typeUtils.ts +++ b/backend/src/utils/typeUtils.ts @@ -3,5 +3,6 @@ export type Tail = ((...t: T) => void) extends (h: any, ...r: i export declare type WithRequiredProps = T & { + // https://mariusschulz.com/blog/mapped-type-modifiers-in-typescript#removing-the-mapped-type-modifier [PK in K]-?: Exclude; };