---
title: "TypeScript Generics: with a Witcher"
url: https://daily.dev/posts/typescript-generics-with-a-witcher-8i3u2visy
source_url: https://levelup.gitconnected.com/typescript-generics-with-a-witcher-6f449f253e13
type: article
source: "gitconnected"
published: 2021-01-11T02:45:31.370Z
updated: 2021-10-07T14:17:10.317Z
tags: ["typescript"]
reading_time: 10
upvotes: 18
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TypeScript Generics: with a Witcher

**[gitconnected](https://daily.dev/sources/gc)** · 10 min read · 18 upvotes · 1 comments

## Summary

Generics can help us create well defined classes, interfaces, and functions while still giving us the flexibility of keeping them “generic”- by making them work according to a passed type (or types) by the programmer. You can follow along over at Typescript playground, if you do not have any local environment set up.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://levelup.gitconnected.com/typescript-generics-with-a-witcher-6f449f253e13>

## Community discussion

Top comments from developers on daily.dev.

**@javiermartin98** · 0 upvotes

> basic but necessary

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#typescript](https://daily.dev/tags/typescript)

[View this post on daily.dev](https://daily.dev/posts/typescript-generics-with-a-witcher-8i3u2visy)
