@toride/drizzle 0.2.0 → 0.3.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 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -35,8 +35,11 @@ interface DrizzleAdapterOptions {
|
|
|
35
35
|
* Produces intermediate query description objects that capture the
|
|
36
36
|
* operation type, field, and value. These can be used with drizzle-orm
|
|
37
37
|
* operators or processed by custom query builders.
|
|
38
|
+
*
|
|
39
|
+
* @typeParam TQueryMap - Maps resource type names to their Drizzle query types.
|
|
40
|
+
* Defaults to `Record<string, DrizzleQuery>` for backward compatibility.
|
|
38
41
|
*/
|
|
39
|
-
declare function createDrizzleAdapter(table: AnyTable, options?: DrizzleAdapterOptions): ConstraintAdapter<
|
|
42
|
+
declare function createDrizzleAdapter<TQueryMap extends Record<string, DrizzleQuery> = Record<string, DrizzleQuery>>(table: AnyTable, options?: DrizzleAdapterOptions): ConstraintAdapter<TQueryMap>;
|
|
40
43
|
/** Options for createDrizzleResolver. */
|
|
41
44
|
interface DrizzleResolverOptions {
|
|
42
45
|
/** Column used as the resource ID. Defaults to "id". */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toride/drizzle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Drizzle ORM integration for Toride authorization engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"toride": "0.
|
|
23
|
+
"toride": "0.3.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"drizzle-orm": ">=0.29.0"
|