Ohans Emmanuel's Blog

The new Instantiation Expression in Typescript

With instantiation expressions, we can now take functions and constructors and feed them type arguments directly.

Avoid Object wrapper Types in Typescript—Here's why

Consider the following contrived Typescript example: // 1 const hello = (v: String) => { console.log(v) } // 2 const hello = (v: string) => { console.log(v) } Note the difference in the type of the v parameter: string vs String. Don’t use the Object wrapper types As a general rule, you should rarely use

The Seven Most Asked Typescript Questions on StackOverflow — Explained

I hate Stackoverflow — said no developer. While it’s helpful to have your answers a Google search away, what’s powerful is truly understanding the solutions you stumble on. In this article, I’ll explore the seven most stackoverflowed Typescript questions. I spent hours researching these. I hope you gain

Are strongly typed functions as parameters possible in TypeScript?

TLDR This question does not need to be overly explained. The short answer is yes. Functions can be strongly typed — even as parameters to other functions. How to use strongly typed function parameters The accepted answer on this stack overflow post is correct — to a degree. Assuming you had a

How do you explicitly set a new property on ‘window’ in Typescript?

TLDR: Extend the existing interface declaration for the Window object.

Ohans Emmanuel's Blog © 2026