Skip to content

fixup! refactor(types): improve type safety #1738

fixup! refactor(types): improve type safety

fixup! refactor(types): improve type safety #1738

Triggered via push December 15, 2024 23:28
Status Success
Total duration 3m 26s
Artifacts 1

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
test_and_build: src/components/CowCard/CowCard.test.js#L45
Object is possibly 'undefined'.
test_and_build: 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.
test_and_build: 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.
test_and_build: src/components/CowCard/CowCard.test.js#L99
Object is possibly 'undefined'.
test_and_build: 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.
test_and_build: src/components/CowCard/CowCard.test.js#L121
Type '{ money: number; allowCustomPeerCowNames: boolean; cow: cow; 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.
test_and_build: src/components/CowCard/CowCard.test.js#L140
Type '{ cow: cow; cowInventory: cow[]; money: number; 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.
test_and_build: src/components/CowCard/CowCard.test.js#L150
Object is possibly 'null'.
test_and_build: src/components/CowCard/CowCard.test.js#L172
Type '{ cow: cow; cowInventory: cow[]; cowBreedingPen: { cowId1: string; cowId2: null; daysUntilBirth: number; }; money: number; allowCustomPeerCowNames: boolean; cowIdOfferedForTrade: string; ... 9 more ...; selectedCowId: string; }' is missing the following properties from type 'Pick<CowCardProps, keyof CowCardProps>': debounced, handleCowAutomaticHugChange, handleCowBreedChange, handleCowHugClick, and 4 more.
test_and_build: src/components/CowCard/CowCard.test.js#L187
Object is possibly 'null'.
test_and_build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
build-output
2.79 MB