Skip to content

Instantly share code, notes, and snippets.

@vansika
Created October 14, 2020 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vansika/5c3e4b39cf60825a87c143dbdb29ca84 to your computer and use it in GitHub Desktop.
Save vansika/5c3e4b39cf60825a87c143dbdb29ca84 to your computer and use it in GitHub Desktop.
static/js/src/recommendations/RecommendationCard.tsx(49,31): error TS2345: Argument of type 'BaseListenFormat' is not assignable to parameter of type 'Listen'.
type_checker_1 | Property 'listened_at' is missing in type 'BaseListenFormat' but required in type '{ listened_at: number; listened_at_iso?: string | null | undefined; playing_now?: boolean | null | undefined; score?: number | undefined; }'.
type_checker_1 | static/js/src/recommendations/RecommendationCard.tsx(56,34): error TS2345: Argument of type 'BaseListenFormat' is not assignable to parameter of type 'Listen'.
type_checker_1 | Type 'BaseListenFormat' is not assignable to type '{ listened_at: number; listened_at_iso?: string | null | undefined; playing_now?: boolean | null | undefined; score?: number | undefined; }'.
type_checker_1 | static/js/src/recommendations/Recommendations.tsx(67,44): error TS2345: Argument of type 'BaseListenFormat' is not assignable to parameter of type 'Listen'.
type_checker_1 | Type 'BaseListenFormat' is not assignable to type '{ listened_at: number; listened_at_iso?: string | null | undefined; playing_now?: boolean | null | undefined; score?: number | undefined; }'.
type_checker_1 | static/js/src/recommendations/Recommendations.tsx(273,15): error TS2322: Type 'BaseListenFormat | undefined' is not assignable to type 'Listen | undefined'.
type_checker_1 | Type 'BaseListenFormat' is not assignable to type 'Listen'.
type_checker_1 | Type 'BaseListenFormat' is not assignable to type '{ listened_at: number; listened_at_iso?: string | null | undefined; playing_now?: boolean | null | undefined; score?: number | undefined; }'.
type_checker_1 | static/js/src/recommendations/Recommendations.tsx(275,15): error TS2322: Type 'BaseListenFormat[]' is not assignable to type 'Listen[]'.
type_checker_1 | Type 'BaseListenFormat' is not assignable to type 'Listen'.
type_checker_1 | Type 'BaseListenFormat' is not assignable to type '{ listened_at: number; listened_at_iso?: string | null | undefined; playing_now?: boolean | null | undefined; score?: number | undefined; }'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment