refactor(types): improve type safety #1736
Annotations
10 errors and 1 warning
test_and_build:
src/components/ContextPane/ContextPane.js#L12
Property 'playerInventory' does not exist on type '{ children?: ReactNode; }'.
|
test_and_build:
src/components/ContextPane/ContextPane.js#L20
Property 'playerInventory' does not exist on type 'Readonly<PropsWithChildren<object>>'.
|
test_and_build:
src/components/ContextPane/ContextPane.js#L20
Property 'playerInventory' does not exist on type 'Readonly<PropsWithChildren<object>>'.
|
test_and_build:
src/components/CowCard/CowCard.js#L147
Property 'scrollIntoView' does not exist on type 'HTMLAnchorElement'. Try changing the 'lib' compiler option to include 'dom'.
|
test_and_build:
src/components/CowCard/CowCard.js#L148
Property 'scrollIntoView' does not exist on type 'HTMLAnchorElement'. Try changing the 'lib' compiler option to include 'dom'.
|
test_and_build:
src/components/CowCard/CowCard.js#L190
Property 'value' does not exist on type 'EventTarget & (HTMLInputElement | HTMLTextAreaElement)'.
|
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#L65
Property 'closest' does not exist on type 'HTMLElement'. Try changing the 'lib' compiler option to include 'dom'.
|
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
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 |
|