From b08d926872a2f155bc1c1c5a8ea13dd2c55c81c1 Mon Sep 17 00:00:00 2001 From: Remco Horters Date: Mon, 4 Dec 2023 13:13:41 +0100 Subject: [PATCH] feat: add valueOf type --- src/types/valueOf.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/types/valueOf.ts diff --git a/src/types/valueOf.ts b/src/types/valueOf.ts new file mode 100644 index 0000000..0fa9f4a --- /dev/null +++ b/src/types/valueOf.ts @@ -0,0 +1,4 @@ +/** + * Get the values of a type + */ +export type ValueOf> = T[keyof T];