grammyjs / storages

Storage adapters for grammY sessions.
48 stars 23 forks source link

docs(prisma): add SessionData type to prismaAdapter #194

Closed yosle closed 9 months ago

yosle commented 9 months ago

The specifies the type of data that the PrismaAdapter will be dealing with. By providing the correct type, you ensure that the adapter knows what kind of data it will be working with and can perform type checks during compilation. This prevents potential runtime errors that could arise from trying to access properties that don't exist on the session data.