Declaring types under 'kysely-codegen' module

Hey everyone, because I'm using Prisma to push schemas to my database (it's because my Zod Schemas) also getting generated from my Prisma schemas -- it's why I'm still using it incase you're wondering why I'm in this situation:

I have a
./types/kysely-codegen.d.ts
file which contains
import { Insertable, Selectable, Updateable } from 'kysely';
import { User } from 'kysely-codegen';

declare module 'kysely-codegen' {
    export type BaseUser = Selectable<User>;
    export type NewUser = Insertable<User>;
    export type EditedUser = Updateable<User>;
...
}

in another file I have
import type { DB, BaseUser } from 'kysely-codegen';

BaseUser
gives me the error that
Module '"kysely-codegen"' has no exported member 'BaseUser'.ts(2305)
Was this page helpful?