type error when using definition from openapi

I am using the openapi lib to generate the types for the db. when i want to select from specific table, i provide the generic in the FROM function. but that is apparently incorrect. i followed this example. https://supabase.com/docs/guides/api/generating-types but when i pass the generic in the same way as the example, i get the following error: No overload expects 1 type arguments, but overloads do exist that expect either 0 or 2 type arguments.

my code: const data = supabaseAdmin.from<definitions['account']>('account').select('')

example: const allOnlineUsers = await supabase.from<definitions['users']>('users') .select('
').eq('status', 'ONLINE')
How to generate types for your API and Supabase libraries.
Was this page helpful?