migrating to typescript

This commit is contained in:
Anatoly 2018-09-03 01:10:58 +03:00
parent 3a2d86421e
commit 32d523fc24
2 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ const isDateTime = (type: string): boolean => {
/** /**
* Arranges columns data before loading. * Arranges columns data before loading.
*/ */
export default (arrTableColumns: any[], mysqlVersion: string|number): string => { export default (arrTableColumns: any[], mysqlVersion: string | number): string => {
let strRetVal: string = ''; let strRetVal: string = '';
const wkbFunc: string = mysqlVersion >= 5.76 ? 'ST_AsWKB' : 'AsWKB'; const wkbFunc: string = mysqlVersion >= 5.76 ? 'ST_AsWKB' : 'AsWKB';

View file

@ -47,7 +47,7 @@ export default class Conversion {
/** /**
* V8 memory limit of the loader process. * V8 memory limit of the loader process.
*/ */
public _loaderMaxOldSpaceSize: number|string; public _loaderMaxOldSpaceSize: number | string;
/** /**
* Maximal amount of simultaneous connections to your MySQL and PostgreSQL servers. * Maximal amount of simultaneous connections to your MySQL and PostgreSQL servers.
@ -117,7 +117,7 @@ export default class Conversion {
/** /**
* Current version of source (MySQL) db. * Current version of source (MySQL) db.
*/ */
public _mysqlVersion: string|number; public _mysqlVersion: string | number;
/** /**
* Node-MySQL connections pool. * Node-MySQL connections pool.
@ -187,7 +187,7 @@ export default class Conversion {
/** /**
* An EventEmitter instance. * An EventEmitter instance.
*/ */
public _eventEmitter: EventEmitter|null; public _eventEmitter: EventEmitter | null;
/** /**
* The data types map. * The data types map.