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
@@ -1,6 +1,7 @@
---
import Avatar from './Avatar.astro'
import people from '@data/people.json'
import { requireIndex } from '@shared/lib/array'
interface Props {
toastId?: string
@@ -21,7 +22,7 @@ interface Person {
[key: string]: unknown
}
const person = (people as Person[])[personId]
const person = requireIndex(people as Person[], personId)
---
<div class:list={['toast', show && 'show']} id={`toast-${toastId}`} role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false">