Enable astro/tsconfigs/strictest in the shared package (#2836)

This commit is contained in:
Paweł Kuna
2026-08-08 01:27:03 +02:00
committed by GitHub
parent 16e1403bc8
commit e520b327c1
57 changed files with 147 additions and 116 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
import Icon from '@ui/Icon.astro'
import Flag from '@ui/Flag.astro'
import people from '@data/people.json'
import { requireIndex } from '@shared/lib/array'
interface Person {
university?: string
@@ -21,7 +22,7 @@ interface Props {
}
const { title = 'Basic info', personId = 25 } = Astro.props
const person = (people as Person[])[personId - 1]
const person = requireIndex(people as Person[], personId - 1)
---
<div class="card">