fixup! refactor(types): improve type safety #1737
Annotations
10 errors and 1 warning
Check types:
src/components/CowCard/CowCard.js#L147
Property 'scrollIntoView' does not exist on type 'HTMLAnchorElement'. Try changing the 'lib' compiler option to include 'dom'.
|
Check types:
src/components/CowCard/CowCard.js#L148
Property 'scrollIntoView' does not exist on type 'HTMLAnchorElement'. Try changing the 'lib' compiler option to include 'dom'.
|
Check types:
src/components/CowCard/CowCard.js#L190
Property 'value' does not exist on type 'EventTarget & (HTMLInputElement | HTMLTextAreaElement)'.
|
Check types:
src/components/CowCard/CowCard.test.js#L45
Object is possibly 'undefined'.
|
Check types:
src/components/CowCard/CowCard.test.js#L53
Type '{ cow: cow; money: number; cowInventory: cow[]; allowCustomPeerCowNames: boolean; cowBreedingPen: { cowId1: null; cowId2: null; daysUntilBirth: number; }; cowIdOfferedForTrade: string; ... 9 more ...; selectedCowId: string; }' is missing the following properties from type 'Pick<CowCardProps, keyof CowCardProps>': debounced, handleCowAutomaticHugChange, handleCowBreedChange, handleCowHugClick, and 4 more.
|
Check types:
src/components/CowCard/CowCard.test.js#L65
Property 'closest' does not exist on type 'HTMLElement'. Try changing the 'lib' compiler option to include 'dom'.
|
Check types:
src/components/CowCard/CowCard.test.js#L80
Type '{ cow: cow; money: number; allowCustomPeerCowNames: boolean; cowInventory: never[]; cowBreedingPen: { cowId1: null; cowId2: null; daysUntilBirth: number; }; cowIdOfferedForTrade: string; handleCowSelect: () => void; ... 8 more ...; selectedCowId: string; }' is missing the following properties from type 'Pick<CowCardProps, keyof CowCardProps>': debounced, handleCowAutomaticHugChange, handleCowBreedChange, handleCowHugClick, and 4 more.
|
Check types:
src/components/CowCard/CowCard.test.js#L89
Property 'closest' does not exist on type 'HTMLElement'. Try changing the 'lib' compiler option to include 'dom'.
|
Check types:
src/components/CowCard/CowCard.test.js#L99
Object is possibly 'undefined'.
|
Check types:
src/components/CowCard/CowCard.test.js#L102
Type '{ money: number; cowInventory: cow[]; allowCustomPeerCowNames: boolean; cow: cow; cowBreedingPen: { cowId1: null; cowId2: null; daysUntilBirth: number; }; cowIdOfferedForTrade: string; ... 9 more ...; selectedCowId: string; }' is missing the following properties from type 'Pick<CowCardProps, keyof CowCardProps>': debounced, handleCowAutomaticHugChange, handleCowBreedChange, handleCowHugClick, and 4 more.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading