---
title: "Discussion on \"TypeScript Generics Explained Simply: T, extends and Default Types\" | Hashnode"
description: "Discussion on \"TypeScript Generics Explained Simply: T, extends and Default Types\". What are generics in TypeScript?\nGenerics let you write one function, type or class that works with many types, without losing information about which type it is. You can think of a generic as a varia"
url: "https://hashnode.com/posts/typescript-generics-explained-simply-t-extends-and-default-types/6b0fe87b9a7ef2daef0a426d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TypeScript Generics Explained Simply: T, extends and Default Types](https://frontend-mind.com/typescript-generics-explained-simply-t-extends-and-default-types?utm_source=hashnode&utm_medium=feed)

What are generics in TypeScript? Generics let you write one function, type or class that works with many types, without losing information about which type it is. You can think of a generic as a varia

2h ago · 9 min read · frontend-mind.com  
Read the article

## Written by

[Przemek Szczepański](https://hashnode.com/@przemekfront)

@przemekfront · Kraków, Poland

  
[View profile](https://hashnode.com/@przemekfront)

Front-end Software Engineer

Front-end developer who pays special attention to the aesthetics and functionality of websites. I love playing with interesting design solutions, creating interfaces that not only work efficiently, but also attract attention with their unique design. I like to derive pleasure from it, like with my old 'Portfolio' website. After hours, I return to classic games or good movies that stimulate the imagination.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
