---
title: "Discussion on \"TypeScript: Tailor required and optional fields for related API endpoints\" | Hashnode"
description: "Discussion on \"TypeScript: Tailor required and optional fields for related API endpoints\". TL;DR: TypeScript's utility types make it easy to tailor which model fields are required, optional, or even present across API endpoints.\nWhen you're working with a REST API in TypeScript, it's a good idea to create interfaces for the models (or mess..."
url: "https://hashnode.com/posts/typescript-tailor-required-and-optional-fields-for-related-api-endpoints/60299e3e99eab86a048727f1"
---

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

Discussion

# [TypeScript: Tailor required and optional fields for related API endpoints](https://spaceaardvark.hashnode.dev/typescript-tailor-required-and-optional-fields-for-related-api-endpoints?utm_source=hashnode&utm_medium=feed)

TL;DR: TypeScript's utility types make it easy to tailor which model fields are required, optional, or even present across API endpoints. When you're working with a REST API in TypeScript, it's a good idea to create interfaces for the models (or mess...

Feb 14, 2021 · 3 min read · spaceaardvark.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Space Aardvark](https://hashnode.com/@spaceaaradvark)

@spaceaaradvark · Texas, USA

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

Frontend, Fintech, and Fadoodles

Hi, I'm Seth Livingston, a Senior Software Engineer at Moov Financial. Aardvark by abraham.williams (https://www.flickr.com/photos/14939682@N02) Space background by Jeremy Perkins (https://unsplash.com/@jeremyperkins?utm\_source=unsplash&amp;utm\_medium=referral&amp;utm\_content=creditCopyText)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
