Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript type array of interface

// source: https://stackoverflow.com/questions/25469244/how-can-i-define-an-interface-for-an-array-of-objects

interface EnumServiceItem {
    id: number; label: string; key: any
}

interface EnumServiceItems extends Array<EnumServiceItem>{}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #type #array #interface
ADD COMMENT
Topic
Name
6+6 =