pwi-plata-type 0.4.116 → 0.4.117
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/package.json +1 -1
- package/src/@types/knex.d.ts +2 -1
package/package.json
CHANGED
package/src/@types/knex.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Knex as KnexOriginal } from 'knex';
|
|
2
|
+
import { ModelTemplate } from '++/libs/model'
|
|
2
3
|
|
|
3
4
|
declare module 'knex' {
|
|
4
5
|
namespace Knex {
|
|
@@ -7,7 +8,7 @@ declare module 'knex' {
|
|
|
7
8
|
context<TRecord extends {}, TResult>(context: any): KnexOriginal.QueryBuilder<TRecord, TResult>;
|
|
8
9
|
|
|
9
10
|
context<T>(): T;
|
|
10
|
-
selectUsing<
|
|
11
|
+
selectUsing<T extends Model.Template, C extends Model.Converters<T>>(model: ModelTemplate<T, C>): Sql.ModelList<T>
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|