@@ -2,7 +2,7 @@ import type { Compilable, CompiledQuery, RootOperationNode } from 'kysely'
2
2
3
3
export type QueryBuilderOutput < QB > = QB extends Compilable < infer O > ? O : never
4
4
5
- type SetParam < O , T extends Record < string , any > > = {
5
+ export type SetParamFn < O , T extends Record < string , any > > = {
6
6
/**
7
7
* query builder for setup params
8
8
*/
@@ -17,7 +17,7 @@ type SetParam<O, T extends Record<string, any>> = {
17
17
* @param processRootOperatorNode process `query` in {@link CompiledQuery},
18
18
* default is `(node) => ({ kind: node.kind })`
19
19
*/
20
- type CompileFn < O , T extends Record < string , any > > = (
20
+ export type CompileFn < O , T extends Record < string , any > > = (
21
21
param : T ,
22
22
processRootOperatorNode ?: ( ( node : RootOperationNode ) => RootOperationNode )
23
23
) => CompiledQuery < QueryBuilderOutput < O > >
@@ -57,7 +57,7 @@ export function precompileQuery<O>(
57
57
* @returns function to {@link CompileFn compile}
58
58
*/
59
59
setParam : < T extends Record < string , any > > (
60
- paramBuilder : ( { param, qb } : SetParam < O , T > ) => Compilable < O > ,
60
+ paramBuilder : ( { param, qb } : SetParamFn < O , T > ) => Compilable < O > ,
61
61
) : CompileFn < O , T > => {
62
62
let compiled : CompiledQuery < Compilable < O > >
63
63
return ( param , processRootOperatorNode ) => {
0 commit comments