Skip to content

Commit

Permalink
chore: Update README with Michigan TS interview (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavoguichard authored Oct 30, 2023
1 parent 296f0c7 commit 7d1bc30
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ TypeScript yields the best static analysis when types are highly specific.
Literals are more specific than type `string`.
This library preserves literals (and unions of literals) after transformations, unlike most existing utility libraries (and built-in string methods.)

[I still didn't get the purpose of this library 🤔](#interview)

### In-depth example

In the below example, I want to get a strongly-typed, camel-case version of `process.env`.
Expand Down Expand Up @@ -923,6 +925,12 @@ const result = deepTransformKeys(data, toUpperCase) as MyType<typeof data>
// ^ { 'HELLOWORLD': 'baz' }
```

## 🎙️ Interview

For a deeper dive into the code, reasoning, and how this library came to be, check out this interview with the author of StringTs on the Michigan TypeScript Meetup.

[![StringTs on Michigan TS](https://img.youtube.com/vi/dOXpkAmmahw/0.jpg)](https://www.youtube.com/watch?v=dOXpkAmmahw)

## 🐝 Contributors

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down

0 comments on commit 7d1bc30

Please sign in to comment.