questions/00003-medium-omit/README.ja.md
組み込みの型ユーティリティOmit<T, K>を使用せず、TのプロパティからKを削除する型を実装します。
例えば
interface Todo {
title: string
description: string
completed: boolean
}
type TodoPreview = MyOmit<Todo, 'description' | 'title'>
const todo: TodoPreview = {
completed: false,
}
<a href="../../README.ja.md" target="_blank"></a> <a href="https://tsch.js.org/3/answer/ja" target="_blank"></a> <a href="https://tsch.js.org/3/solutions" target="_blank"></a> <hr><h3>関連する課題</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00004-easy-pick/README.ja.md" target="_blank"></a> <!--info-footer-end-->