From 2b1e419a298e5818e54c72f1b898d5ce67db516f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halvard=20M=C3=B8rstad?= Date: Tue, 15 Oct 2024 23:49:34 +0200 Subject: [PATCH] feat(types): updated readme --- types/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/types/README.md b/types/README.md index 2b78037..7d1ba7d 100644 --- a/types/README.md +++ b/types/README.md @@ -1,3 +1,16 @@ # @stdext/types -The types package, contains general purpose type helpers +The types package, contains general purpose type helpers. + +## Examples + +```ts +import { ValueOf } from "jsr:@stdext/types"; + +const SOME_MAP = { + a: "b", + c: "d", +}; + +type SomeMapValues = ValueOf; // "b" | "d" +```