Answers for "typescript omit"

0

typescript omit

tstype Person = {  name: string;  age: number;  location: string;};type QuantumPerson = Omit<Person, "location">;// equivalent totype QuantumPerson = {  name: string;  age: number;};
Posted by: Guest on July-18-2021
0

typescript utility types merge interfaces

interface A {
    x: string
}

interface B extends Omit<A, 'x'> {
  x: number
}
Posted by: Guest on August-10-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language