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