-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
Quando queremos omitir algumas propriedades K de uma interface T
interface Veiculo {
descricao: string;
marca: string;
motor: string;
portas: number;
}
type Bicicleta = Omit<Veiculo, 'motor' | 'portas'>;
const minhaBike: Bicicleta = {
descricao: 'Bike que ganhei de presente',
marca: "Monark"
};Metadata
Metadata
Assignees
Labels
No labels