Skip to content

Instantly share code, notes, and snippets.

@kanian
Created August 24, 2020 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanian/ad80326fe7ccba80ce327d3d87d8e82b to your computer and use it in GitHub Desktop.
Save kanian/ad80326fe7ccba80ce327d3d87d8e82b to your computer and use it in GitHub Desktop.
PartialOfProperties
import { NonFunctionKeys } from "utility-types"
export type PartialOfProperties<T extends object> = Partial<{ [P in NonFunctionKeys<T>]: T[P] }>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment