questions/00003-medium-omit/README.pt-BR.md
Traduzido pelo Google, abra um PR para ajudar a melhorar a tradução.
Implemente o genérico Omit<T, K> integrado sem usá-lo.
Constrói um tipo escolhendo todas as propriedades de T e removendo K
Por exemplo
interface Todo {
title: string
description: string
completed: boolean
}
type TodoPreview = MyOmit<Todo, 'description' | 'title'>
const todo: TodoPreview = {
completed: false,
}
<a href="../../README.pt-BR.md" target="_blank"></a> <a href="https://tsch.js.org/3/answer/pt-BR" target="_blank"></a> <a href="https://tsch.js.org/3/solutions" target="_blank"></a> <hr><h3>Desafios Relacionados</h3><a href="https://github.com/type-challenges/type-challenges/blob/main/questions/00004-easy-pick/README.pt-BR.md" target="_blank"></a> <!--info-footer-end-->