I've just started playing around with single fetch, and I noticed how useLoaderData<typeof loader> / useActionData<typeof action> results in type inference identifying the loader/action data as unknown. I've already added single-fetch.d.ts to tsconfig.json. Is this the expected behavior? The docs show that type inference should be able to properly identify the return types from loaders/actions.
#Single Fetch Loader/Action Data is type Unknown
1 messages · Page 1 of 1 (latest)
Trying adding it to compilerOptions.types instead of includes - see https://github.com/remix-run/remix/issues/9330
Okay, great, that seems to help. Though, moving it from includes to compilerOptions.types seems to break _SingleFetch types, like UIMatch_SingleFetch.
Do you mind adding that as a comment to the issue and we can take a look?