Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript generic object

const genericObject: { [key:string]: any } = {
  arrayOfNumbers: [1, 2, 3],
  emptyObject: {},
  stringProp: 'hello'
}
 
PREVIOUS NEXT
Tagged: #typescript #generic #object
ADD COMMENT
Topic
Name
7+2 =