Skip to content

Commit 361be8f

Browse files
committed
Fix type errors
1 parent bc31bbf commit 361be8f

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/app/conf/2025/components/speaker-tags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function SpeakerTags({
3131
)}
3232

3333
<Tag color="hsl(var(--color-neu-500))">
34-
{(speaker["~years"] || []).length > 1 ? (
34+
{speaker._years.length > 1 ? (
3535
<>
3636
<ReloadIcon className="-mx-0.5 size-3" />
3737
returning speaker

src/app/conf/_api/sched-client.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ function preprocessDescription(description: string | undefined | null): string {
179179
}
180180

181181
function shapeSpeaker(user: SchedSpeaker): SchedSpeaker {
182-
const res = {
182+
const res: SchedSpeaker = {
183183
...user,
184+
_years: user._years || [],
184185
socialurls: user.socialurls || [],
185186
about: preprocessDescription(user.about),
186187
}

src/app/conf/_api/sched-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export type SchedSpeaker = {
2626
socialurls: { service: string; url: string }[]
2727
/* unix timestamp, ignored when diffing */
2828
["~syncedDetailsAt"]?: number
29-
/* merged on conflict */
29+
/* added on export, merged on conflict */
3030
_years: ConferenceYear[]
3131
}
3232

src/pages/tags/_meta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default () => {
55
// This is logging an error
66
// `Attempted import error: 'getStaticPaths' is not exported from './[slug].mdx'`
77
// but the pages work?
8+
// @ts-ignore // the error appears only in build, not in text editors
89
const { paths } = getStaticPaths() as unknown as {
910
paths: { params: { slug: string } }[]
1011
}

tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)