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";
22import { Sequelize , Model , ModelCtor } from "sequelize" ;
33
44export 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 >
711}
812
913export type BaseModel = {
Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import * as path from "path";
44
55import mime from "mime-types" ;
66import bodyParser from "body-parser" ;
7+ import { MySequelize } from "./models/baseModel" ;
78
8- export function isSQLite ( sequelize ) : boolean {
9+ export function isSQLite ( sequelize : MySequelize ) : boolean {
910 return sequelize . options . dialect === 'sqlite'
1011}
1112
You can’t perform that action at this time.
0 commit comments