Skip to content

Commit

Permalink
chore: Update package.json version to 1.2.7 and fix AllPrismaMethodsL…
Browse files Browse the repository at this point in the history
…owercase export
  • Loading branch information
Digital39999 committed Sep 1, 2024
1 parent 24a24b2 commit 033978c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.6",
"version": "1.2.7",
"name": "ts-prisma",
"author": "Digital39999",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function generateDeclarations(models: string[]) {
TSPrismaNamespace += 'export type AllModelNamesLowercase = FirstLowercase<AllModelNames>;' + nl(2);

TSPrismaNamespace += 'export type AllPrismaMethods = RemoveDefault<keyof TSPrismaModels[keyof TSPrismaModels]>;' + nl(1);
TSPrismaNamespace += 'AllPrismaMethodsLowercase = RemoveDefault<FirstLowercase<AllPrismaMethods>>;' + nl(2);
TSPrismaNamespace += 'export type AllPrismaMethodsLowercase = RemoveDefault<FirstLowercase<AllPrismaMethods>>;' + nl(2);

TSPrismaNamespace += 'export type Callable = <T>(...args: T[]) => unknown;' + nl(1);
TSPrismaNamespace += 'export type RemoveDefault<T> = Exclude<T, \'Default\' | \'default\'>;' + nl(2);
Expand Down

0 comments on commit 033978c

Please sign in to comment.