From 4d4e5cd4dca78480ec7f40e747f424cd107376a4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 5 Jun 2017 21:53:49 +0200 Subject: require -> import --- server/models/video.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'server/models') diff --git a/server/models/video.ts b/server/models/video.ts index 9284dfeba..5558a7c3b 100644 --- a/server/models/video.ts +++ b/server/models/video.ts @@ -1,12 +1,12 @@ -import safeBuffer = require('safe-buffer') +import * as safeBuffer from 'safe-buffer' const Buffer = safeBuffer.Buffer -import createTorrent = require('create-torrent') -import ffmpeg = require('fluent-ffmpeg') -import fs = require('fs') -import magnetUtil = require('magnet-uri') +import * as createTorrent from 'create-torrent' +import * as ffmpeg from 'fluent-ffmpeg' +import * as fs from 'fs' +import * as magnetUtil from 'magnet-uri' import { map, values } from 'lodash' import { parallel, series } from 'async' -import parseTorrent = require('parse-torrent') +import * as parseTorrent from 'parse-torrent' import { join } from 'path' import * as Sequelize from 'sequelize' -- cgit v1.2.3