---
title: "Discussion on \"Resources to types with 'infer'\" | Hashnode"
description: "Discussion on \"Resources to types with 'infer'\". Learn how you can make any string-based resource into a TypeScript type, and make the compiler do the hard work of checking the data for you."
url: "https://hashnode.com/posts/typescript-magic-resources-as-types-with-infer/659416e9afc44135fc07507b"
---

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

Discussion

# [Resources to types with 'infer'](https://slamcode.hashnode.dev/typescript-magic-resources-as-types-with-infer?utm_source=hashnode&utm_medium=feed)

Learn how you can make any string-based resource into a TypeScript type, and make the compiler do the hard work of checking the data for you.

Jan 2, 2024 · 10 min read · slamcode.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#advanced](https://hashnode.com/tag/advanced)
-   [#pattern-matching](https://hashnode.com/tag/pattern-matching)
-   [#formatting](https://hashnode.com/tag/formatting)

## Written by

[Slawomir Moriak](https://hashnode.com/@Slamcode)

@Slamcode · Poland

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

#developer #csharp #dotnet #fullstack #javascript #devops #cloud

Developer with 12+ years of experience in wide range business branches and wide range of technologies orbiting around .Net on backend, TS on frontend and AWS/Azure cloud on infrastructure. Lover of discussing programming and architecture related concepts. Writing to share thoughts, way of thinking and dealing with everyday challenges at work. Maybe teaching someone something new and useful this way.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
