Fix to not use cursed empty object type and add lint (#6033)

This commit is contained in:
Jonathan Tran
2025-03-27 18:08:57 -04:00
committed by GitHub
parent 4f35197a96
commit 71b9e40bd9
9 changed files with 15 additions and 9 deletions

View File

@ -12,7 +12,7 @@ export type FileLoaderData = {
file?: FileEntry
}
export type HomeLoaderData = {}
export type HomeLoaderData = Record<string, never>
// From the very helpful @jcalz on StackOverflow: https://stackoverflow.com/a/58436959/22753272
type Join<K, P> = K extends string | number