mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 13:21:29 +04:00
Enable astro/tsconfigs/strictest in the shared package (#2836)
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user