Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Use of typescript generics for extended parametres

titleStylesCondition<
    IP extends {
      hasOwnProperty: (a: string) => boolean;
      throwData?: ThrowData;
      title?: string;
    },
    ThrowData,
  >(itemProps: IP) {
 
PREVIOUS NEXT
Tagged: #Use #typescript #generics #extended #parametres
ADD COMMENT
Topic
Name
4+9 =