Trying to use types from js-v2 returns databases but not rows
import { SupabaseClient } from "@supabase/supabase-js";
import type { Database } from "../types";
import { useContext } from "react";
import { Context } from "../context";
export const Context = createContext<SupabaseClient<Database> | undefined>(
undefined
);
export const useSupabaseClient = (): SupabaseClient<Database> => {
const client = useContext(Context);
if (client === undefined)
throw Error("No client has been specified using Provider.");
return client;
};
const { data, error } = await supabase.from("account").select(");The from is autofilled by my IDE, but when selecting, it will only suggest *, not the rows. They do exist in the types.ts. Anything I am missing?