From 609caf2c4b31ab7c43ad4f3d580dd089e2d51496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Mon, 1 Jul 2019 23:36:07 +0900 Subject: [PATCH] FIx types --- test/note.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/note.ts b/test/note.ts index 45c016ca7..9b769f57e 100644 --- a/test/note.ts +++ b/test/note.ts @@ -16,9 +16,11 @@ process.env.NODE_ENV = 'test'; import * as assert from 'assert'; import * as childProcess from 'child_process'; +import { Connection } from 'typeorm'; import { async, signup, request, post, uploadFile } from './utils'; -import { Note } from '../built/models/entities/note'; -const initDb = require('../built/db/postgre.js').initDb; +const { Note }: { Note: new () => unknown } = require('../built/models/entities/note'); +// tslint:disable-next-line: bool-param-default +const { initDb }: { initDb(justBorrow?: boolean, sync?: boolean, log?: boolean): Promise } = require('../built/db/postgre.js'); describe('Note', () => { let p: childProcess.ChildProcess;