Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript extend type

type Event = {
   name: string;
   dateCreated: string;
   type: string;
}

interface UserEvent extends Event {
   UserId: string; 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #extend #type
ADD COMMENT
Topic
Name
6+9 =