From 033978c2410415332bea43c886ac22efdc5cd447 Mon Sep 17 00:00:00 2001 From: Digital39999 Date: Sun, 1 Sep 2024 16:53:39 +0200 Subject: [PATCH] chore: Update package.json version to 1.2.7 and fix AllPrismaMethodsLowercase export --- package.json | 2 +- src/cli.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6eaefd4..dbe9c51 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.2.6", + "version": "1.2.7", "name": "ts-prisma", "author": "Digital39999", "scripts": { diff --git a/src/cli.ts b/src/cli.ts index ed0b048..3ca57d3 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -107,7 +107,7 @@ export function generateDeclarations(models: string[]) { TSPrismaNamespace += 'export type AllModelNamesLowercase = FirstLowercase;' + nl(2); TSPrismaNamespace += 'export type AllPrismaMethods = RemoveDefault;' + nl(1); - TSPrismaNamespace += 'AllPrismaMethodsLowercase = RemoveDefault>;' + nl(2); + TSPrismaNamespace += 'export type AllPrismaMethodsLowercase = RemoveDefault>;' + nl(2); TSPrismaNamespace += 'export type Callable = (...args: T[]) => unknown;' + nl(1); TSPrismaNamespace += 'export type RemoveDefault = Exclude;' + nl(2);