---
title: "Discussion on \"TIL: How to type an array in Typescript to express this array has at least 1 element\" | Hashnode"
description: "Discussion on \"TIL: How to type an array in Typescript to express this array has at least 1 element\". TIL how to type an array with at least one element in Typescript"
url: "https://hashnode.com/posts/til-how-to-type-an-array-in-typescript-to-express-this-array-has-at-least-1-element/65325e4d8f00888bda9b6a1b"
---

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

Discussion

# [TIL: How to type an array in Typescript to express this array has at least 1 element](https://camillebriand.hashnode.dev/til-how-to-type-an-array-in-typescript-to-express-this-array-has-at-least-1-element?utm_source=hashnode&utm_medium=feed)

TIL how to type an array with at least one element in Typescript

Oct 20, 2023 · 1 min read · camillebriand.hashnode.dev  
Read the article

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

## Written by

[Camille Briand](https://hashnode.com/@AmiralBl3ndic)

@AmiralBl3ndic · Paris, France

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

Software Engineer Consultant @ PMU

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
