Created
August 24, 2020 21:49
-
-
Save kanian/ffd4c1f4f7ae48dade3b60ea2d32846e to your computer and use it in GitHub Desktop.
Extract get the non function keys of an instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NonFunctionKeys } from "utility-types" | |
export type OnlyProperties<T extends object> = { [P in NonFunctionKeys<T>]: T[P] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment