questions/00003-medium-omit/README.md
Implement the built-in Omit<T, K> generic without using it.
Constructs a type by picking all properties from T and then removing K
For example
interface Todo {
title: string
description: string
completed: boolean
}
type TodoPreview = MyOmit<Todo, 'description' | 'title'>
const todo: TodoPreview = {
completed: false,
}
<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/3/answer" target="_blank"></a> <a href="https://tsch.js.org/3/solutions" target="_blank"></a> <hr><h3>Related Challenges</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00004-easy-pick/README.md" target="_blank"></a> <!--info-footer-end-->