prisma-prefixed-ids 1.3.0 → 1.3.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -2
  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,9 @@ export declare function createPrefixedIdsExtension<ModelName extends string>(con
18
18
  };
19
19
  };
20
20
  };
21
- export declare function extendPrismaClient<ModelName extends string = string>(prisma: PrismaClient, config: PrefixConfig<ModelName>): PrismaClient;
21
+ export declare function extendPrismaClient<ModelName extends string = string, Client extends {
22
+ $extends: (extension: any) => Client;
23
+ } = PrismaClient & {
24
+ $extends: (extension: any) => any;
25
+ }>(prisma: Client, config: PrefixConfig<ModelName>): Client;
22
26
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-prefixed-ids",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "A Prisma extension that adds prefixed IDs to your models",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",