Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript export interface array

interface Animal {  name: string;  size: "small";  medium;  large;}const animalsArray: Animal[] = [  { name: "chicken", size: "small" },  { name: "pig", size: "medium" },  { name: "cow", size: "large" },];
Source by codeconqueror.com #
 
PREVIOUS NEXT
Tagged: #typescript #export #interface #array
ADD COMMENT
Topic
Name
1+6 =