From 935c14a91f51283a237254918c0d2662fd7da8c5 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Tue, 21 Feb 2023 00:51:07 +0000 Subject: [PATCH] feat(PropertyValue): add PropertyValue type --- index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.ts b/index.ts index 9484b13..1823cdb 100644 --- a/index.ts +++ b/index.ts @@ -7,6 +7,9 @@ import {filter, map} from "@softwareventures/iterable"; * As of TypeScript 4.9, `Key` is equivalent to `string | number | symbol`. */ export type Key = keyof T; +/** The type of a property value of `T`. */ +export type PropertyValue = T[keyof T]; + /** The type `T`, but with any callable or newable signatures removed. */ export type NotFunction = {[K in keyof T]: T[K]};