File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,12 @@ import {Moment} from "moment";
2
2
import { Sequelize , Model , ModelCtor } from "sequelize" ;
3
3
4
4
export type MySequelize = Sequelize & {
5
- processData ?: any
6
- stripNullByte ?: any
5
+ //data, _default, process
6
+ processData ?: ( data : string | [ ] , _default : string | [ ] , process ?: ( string ) => string ) => void
7
+ stripNullByte ?: ( string ) => string
8
+ options ?: {
9
+ dialect ?: string
10
+ } & Record < string , string >
7
11
}
8
12
9
13
export type BaseModel = {
Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import * as path from "path";
4
4
5
5
import mime from "mime-types" ;
6
6
import bodyParser from "body-parser" ;
7
+ import { MySequelize } from "./models/baseModel" ;
7
8
8
- export function isSQLite ( sequelize ) : boolean {
9
+ export function isSQLite ( sequelize : MySequelize ) : boolean {
9
10
return sequelize . options . dialect === 'sqlite'
10
11
}
11
12
You can’t perform that action at this time.
0 commit comments