MyNonNullable

Легкая

Напишите тип MyNonNullable который исключает null и undefined из типа.

Примеры:

Input 1: type Result = MyNonNullable<string | null | undefined>
Output 1: string
Output
Run your code to see results.