Consider following datamodel:
model Company {
...
}
model CompanyClient {
...
}
Prisma seem to generate class for each model, with Client appended to its name:
// this is corresponding to model "Company"
export declare class CompanyClient<T> implements Promise<T> {
...
}
// this is corresponding to model "CompanyClient"
export declare class CompanyClientClient<T> implements Promise<T> {
...
}
..but it also generates type for each model, without appending anything to its name:
export type Company = {
...
}
export type CompanyClient = {
...
}
This leads to typescript error, as type CompanyClient is clashing with class CompanyClient:
Duplicate identifier 'CompanyClient'. ts(2300)
Naming convention for "Client" classes should be altered, probably..
Prisma CLI / client version: 2.0.0-beta.5
Consider following datamodel:
Prisma seem to generate
classfor each model, withClientappended to its name:..but it also generates
typefor each model, without appending anything to its name:This leads to typescript error, as
type CompanyClientis clashing withclass CompanyClient:Naming convention for "Client" classes should be altered, probably..
Prisma CLI / client version: 2.0.0-beta.5