Skip to content

Commit

Permalink
feat(types): updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Oct 15, 2024
1 parent 34aba72 commit 2b1e419
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion types/README.md
Original file line number Diff line number Diff line change
@@ -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<typeof SOME_MAP>; // "b" | "d"
```

0 comments on commit 2b1e419

Please sign in to comment.