Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. error TS2345: Argument of type '(child: { tagName: string; }) => boolean' is not assignable to parameter of type '(value: {}, index: number, obj: {}[]) => boolean'.
  2. Types of parameters 'child' and 'value' are incompatible.
  3. Property 'tagName' is missing in type '{}' but required in type '{ tagName: string; }'.
  4.  
  5. 17 (child: { tagName: string }): boolean => child.tagName === 'AUDIO',
  6. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7.  
  8. src/components/Subscriber/Subscriber.tsx:17:17
  9. 17 (child: { tagName: string }): boolean => child.tagName === 'AUDIO',
  10. ~~~~~~~
  11. 'tagName' is declared here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement