types from nested relational queries

wondering what the type of
user
is?
async function getUserWithSettings(steamId: string): Promise<User> {
  const user = await db.query.users.findFirst({
    where: (user, { eq }) => eq(user.steamId, steamId),
    with: {
      settings: {
        columns : {
          steamId: false,
        },
      },
    }
  });
  return user;
}
Was this page helpful?