yemirhan
yemirhan
TTCTheo's Typesafe Cult
Created by Meyer on 5/20/2023 in #questions
Styled components react native ?
other than that you can also take a look at tamagui
9 replies
TTCTheo's Typesafe Cult
Created by Meyer on 5/20/2023 in #questions
Styled components react native ?
There is nativebase, but sadly it does not use nativewind
9 replies
TTCTheo's Typesafe Cult
Created by shu on 4/30/2023 in #questions
why do i keep getting errors like errors like this on t3 turbo when trying to install packages
are you using pnpm?
3 replies
TTCTheo's Typesafe Cult
Created by Çağlar on 12/3/2022 in #questions
How to modify useSession data type?
in your next-auth.d.ts
import type { Role } from "@prisma/client";
import type { DefaultSession, DefaultUser } from "next-auth";

declare module "next-auth" {
/**
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
*/
interface Session {
user?: {
id: string;
email: string;
image: string | null,
name: string | null,
role: Role
} & DefaultSession["user"];
}
interface User extends DefaultUser {
role: Role
}
}
import type { Role } from "@prisma/client";
import type { DefaultSession, DefaultUser } from "next-auth";

declare module "next-auth" {
/**
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
*/
interface Session {
user?: {
id: string;
email: string;
image: string | null,
name: string | null,
role: Role
} & DefaultSession["user"];
}
interface User extends DefaultUser {
role: Role
}
}
60 replies