---
title: "Discussion on \"Functional Singletons in TypeScript With Real Use Cases\" | Hashnode"
description: "Discussion on \"Functional Singletons in TypeScript With Real Use Cases\". Singletons are commonly used in Object Oriented Programming when we want to enforce that there is only ever a single instance of a class. This might be because we are trying to encapsulate some global state between processes.\nIn this article, I will ..."
url: "https://hashnode.com/posts/functional-singletons-in-typescript-with-real-use-cases/6121eea3e404793819caa5f8"
---

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

Discussion

# [Functional Singletons in TypeScript With Real Use Cases](https://antman-does-software.com/functional-singletons-in-typescript-with-real-use-cases?utm_source=hashnode&utm_medium=feed)

Singletons are commonly used in Object Oriented Programming when we want to enforce that there is only ever a single instance of a class. This might be because we are trying to encapsulate some global state between processes. In this article, I will ...

Aug 22, 2021 · 8 min read · antman-does-software.com  
Updated Sep 30, 2022  
Read the article

-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Anthony Manning-Franklin](https://hashnode.com/@Antman261)

@Antman261 · Perth, Australia

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

Drunk on types and functional programming

Former CTO of SKUTOPIA I write about Functional Programming, TypeScript, Node, Event Sourcing, and engineering leadership

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
