typescript create basic type that can accept more code example
Example 1: how to declare a boolean in typescript
let isDone: boolean = false;
Example 2: types function typescript
interface Alternate_Syntax_4_Advanced {
title: string;
callback<T extends unknown[], R = unknown>(...args?: T): R;
}