+ On your way out, don't forget to grab a cookie!{" "}
+
+
+ );
+};
+
+export default App;
diff --git a/src/src/content/blog/generics-with-typescript.mdx b/src/src/content/blog/generics-with-typescript.mdx
deleted file mode 100644
index 21d76e4..0000000
--- a/src/src/content/blog/generics-with-typescript.mdx
+++ /dev/null
@@ -1,141 +0,0 @@
----
-title: Generics with TypeScript
-description: A quick introduction to generics with TypeScript
-author: Timothy Pidashev
-tags: [typescript]
-date: December 25, 2021
-image: "/path/to/your/image.jpg"
----
-
-In this quick post we'll cover what are generics and how to use them with TypeScript. It answers a question I got from a friend, and I thought it could also be useful for others. We'll go through the following points:
-
-- What are generics
-- Using generic types
-- Generics constraints
-- Generics with functions
-
-If you're familiar with the concept of code reuse, well it is just that. We can use generics to create reusable patterns for types. It results in flexible types that work with different variations, and also fewer types to maintain as you avoid duplication.
-
-Code reuse is an important part of building flexible components/functions that serve complex and large systems. Nevertheless, abstraction is hard to get right in general and could cause inflexibility in some cases.
-
-## What are generics
-
-You can think of generics as arguments to your types. When a type with generics is used, those generics are passed to it. As we mentioned above, this will allow us to reuse the common patterns of the type declarations.
-
-Many functions that you're already using could have optional generic types. For example the array methods like `Array.map()` and `Array.reduc()` accept a generic for elements type:
-
-```ts
-const numbers = [1, 2, 3]
-numbers.map((n) => n)
-numbers.map((n) => n) // with a generic type
-```
-
-You probably also came across generics while fixing Typescript type errors, without knowing what's going on. We've all been there. Once you learn about generics, you'll see them used everywhere, in the web APIs and third-party libraries.
-
-Hope that by the end of this post it’ll be more clear to you.
-
-## Generic types
-
-We can start by building our first type with generics. Let's say you have two functions `getUser` and `getProduct` that return some data for a user and a product:
-
-```ts
-type User = {
- email: string
-}
-
-type Product = {
- id: string
-}
-
-type UserResponse = {
- data: User
-}
-
-type ProductResponse = {
- data: Product
-}
-
-const user: UserResponse = getUser(id)
-const product: ProductResponse = getProduct(id)
-```
-
-You'll notice that the `UserResponse` and `ProductResponse` are kind of the same type declaration, both have `data` key but with different types. You can expect that if a new type is added it will also need to have its own `YetAnotherResponse` type which will result in duplicating same response type over and over again. And in the case you want to make a change across `...Responses` types, good luck with that.
-
-We can abstract this common pattern, so our `Response` will be a generic type and depending on the `Data` type passed, it will give the corresponding `Response` type.
-
-```ts
-type User = {
- email: string
-}
-
-type Product = {
- id: string
-}
-
-type GenericResponse = {
- data: Data
-}
-
-const user: GenericResponse = getUser(id)
-const product: GenericResponse = getProduct(id)
-```
-
-## Generics constraints
-
-You might notice that so far the generic type accepts any type. That could be what you need, but sometimes we would want to limit or add constraints to a certain type for the generic type passed.
-
-For a simple example, we can have an `Input` type that has a `Value` generic type. If we want to constrain the `Value` generic type possibilities to be only a `string` or a `number` type, we can specify that by adding an `extends` keyword after the generic name, then the specific constraints type:
-
-```ts
-type Input = Value
-
-const input: Input = 'text' // works
-const input: Input = 123456 // works
-const input: Input