prisma-prefixed-ids 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrismaClient } from "@prisma/client";
|
|
1
|
+
import type { PrismaClient } from "@prisma/client";
|
|
2
2
|
type ModelName = string;
|
|
3
3
|
export type PrefixConfig<ModelName extends string> = {
|
|
4
4
|
prefixes: Partial<Record<ModelName, string>>;
|
|
@@ -18,5 +18,7 @@ export declare function createPrefixedIdsExtension<ModelName extends string>(con
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export declare function extendPrismaClient<ModelName extends string = string
|
|
21
|
+
export declare function extendPrismaClient<ModelName extends string = string, Client extends {
|
|
22
|
+
$extends: (extension: any) => any;
|
|
23
|
+
} = PrismaClient>(prisma: Client, config: PrefixConfig<ModelName>): ReturnType<Client["$extends"]>;
|
|
22
24
|
export {};
|