PartialByType

import { PartialByType } from "jsr:@ende/collections";

type alias

type PartialByType<T, U> = { [K in keyof T as T[K] extends U ? K : never]: T[K] }

Filter of keys matching a given type

Source