|
|
e0810781f4
|
fix: Phase 7d - fix null/undefined handling (28 -> 24 errors)
Fixed multiple null/undefined type errors by adding proper null checks
and default values.
Changes:
1. CharacterRep.svelte:
- Changed import from '$lib/types/enums' to '$lib/utils/element'
- getElementClass in utils/element accepts undefined, enums version doesn't
2. ItemHeader.svelte:
- Convert null to undefined for gridUncapLevel and gridTranscendence
- getCharacterPose expects 'number | undefined', not 'number | null | undefined'
3. UncapStatusDisplay.svelte:
- Added null coalescing for transcendenceStep check
- Changed from `transcendenceStep > 0` to `(transcendenceStep ?? 0) > 0`
4. base.adapter.ts:
- Provide default no-op function for optional onError callback
- Required<AdapterOptions> needs all properties defined
Result: 28 → 24 errors (-4)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-11-28 20:04:02 -08:00 |
|
Devin AI
|
67eb624bfc
|
fix: type errors cleanup (161 -> 130 errors)
- Fix Party.svelte: add null checks for existingChar/existingWeapon/existingSummon
- Fix DropdownItem.svelte: replace asChild with child snippet pattern for bits-ui v2
- Fix UncapStar.svelte, TranscendenceStar.svelte: tabIndex -> tabindex
- Fix Party.svelte, Navigation.svelte: remove asChild prop usage
- Fix images.ts: add | undefined to pose/element params for exactOptionalPropertyTypes
- Fix ItemHeader.svelte, UncapIndicator.svelte: accept number | null | undefined
- Fix GridRepCollection.svelte, GuidebookUnit.svelte: PartyView -> Party type
- Fix search.adapter.ts: add optional type property to SearchResult
- Update various Props interfaces for exactOptionalPropertyTypes compliance
Co-Authored-By: Justin Edmund <justin@jedmund.com>
|
2025-11-28 21:58:11 +00:00 |
|