---
title: "Discussion on \"TypeScript Wrapper: Optional Inputs and Dynamic Output Types\" | Hashnode"
description: "Discussion on \"TypeScript Wrapper: Optional Inputs and Dynamic Output Types\". While many articles explain how to write a wrapper, in this one we’ll show you how to fully control its type. But first, let’s define what a wrapper is:\nA wrapper is a function that encapsulates another function. Its primary purpose is to execute add..."
url: "https://hashnode.com/posts/typescript-wrapper-optional-inputs-and-dynamic-output-types/64b2e052f28cafcc0a92125a"
---

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

Discussion

# [TypeScript Wrapper: Optional Inputs and Dynamic Output Types](https://nbouvrette.hashnode.dev/typescript-wrapper-optional-inputs-and-dynamic-output-types?utm_source=hashnode&utm_medium=feed)

While many articles explain how to write a wrapper, in this one we’ll show you how to fully control its type. But first, let’s define what a wrapper is: A wrapper is a function that encapsulates another function. Its primary purpose is to execute add...

Jul 15, 2023 · 11 min read · nbouvrette.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#generics](https://hashnode.com/tag/generics)
-   [#typescript-generics](https://hashnode.com/tag/typescript-generics)
-   [#typescript-tutorial](https://hashnode.com/tag/typescript-tutorial)
-   [#code-quality](https://hashnode.com/tag/code-quality)

## Written by

[Nicolas Bouvrette](https://hashnode.com/@nbouvrette)

@nbouvrette

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

Seasoned technology leader with a deep-rooted passion for software engineering, backed by over two decades of multifaceted experience.

Seasoned technology leader with a deep-rooted passion for software engineering, backed by over two decades of multifaceted experience. As CTO and Co-Founder at Avansai, I drove product development while wearing multiple hats, from road mapping to business strategy. At Expedia, I led software engineering teams on pivotal projects, including the ground-breaking i18n platform, while also spearheading the evolution from traditional to automated deployment systems. Before joining Expedia, I was managing nationwide tech operations, from data centers to telecom infrastructures. While my heart lies in software, my expertise spans a broad spectrum of technological domains.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
