Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

omit in typescript

interface Todo {
  title: string;
  description: string;
  completed: boolean;
  createdAt: number;
}

type TodoPreview = Omit<Todo, "description">;
 
PREVIOUS NEXT
Tagged: #omit #typescript
ADD COMMENT
Topic
Name
2+8 =