firebase / genkit

An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to integrate, test, and deploy sophisticated AI features to Firebase or Google Cloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better hover-on Intellisense types

cabljac opened this issue · comments

A piece of feedback i've seen repeated several times. This isn't a nice developer experience:

image

My guess is that the huge generated schema in the .d.ts files is causing this. I dont know what a good solution would look like.
Screenshot 2024-06-13 at 08 37 47

Perhaps manually typing and then enforcing equality of types some other way?

I think the issue here is having the generic type which extends z.ZodTypeAny