Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

make a type in typescript

type Props = {
  item: CartItemType;
  addToCart: (clickedItem: CartItemType) => void;
  removeFromCart: (id: number) => void;
};
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #type #typescript
ADD COMMENT
Topic
Name
5+7 =