Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript override type of property

interface A {
    x: string
}

export type B = Omit<A, 'x'> & { x: number };
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #override #type #property
ADD COMMENT
Topic
Name
4+7 =