Allow JSON TS imports, fix errors from enabling esModuleInterop (required for JSON imports)
This commit is contained in:
parent
e6f296381e
commit
498ebe8939
8 changed files with 13 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
import * as knex from "../knex";
|
||||
import knex from "../knex";
|
||||
import Case from "../models/Case";
|
||||
|
||||
export class GuildCases {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as knex from "../knex";
|
||||
import * as moment from "moment-timezone";
|
||||
import knex from "../knex";
|
||||
import moment from "moment-timezone";
|
||||
import Mute from "../models/Mute";
|
||||
|
||||
export class GuildMutes {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as EventEmitter from "events";
|
||||
import EventEmitter from "events";
|
||||
import { LogType } from "./LogType";
|
||||
|
||||
// Use the same instance for the same guild, even if a new instance is created
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const knexfile = require("../knexfile");
|
||||
import * as knex from "knex";
|
||||
import knex from "knex";
|
||||
|
||||
const db = knex(knexfile);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { decorators as d, GlobalPlugin } from "knub";
|
||||
import * as child_process from "child_process";
|
||||
import child_process from "child_process";
|
||||
import { Message } from "eris";
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@ import { GuildServerLogs } from "../data/GuildServerLogs";
|
|||
import { LogType } from "../data/LogType";
|
||||
import { TextChannel } from "eris";
|
||||
import { formatTemplateString } from "../utils";
|
||||
import * as moment from "moment-timezone";
|
||||
import moment from "moment-timezone";
|
||||
|
||||
interface ILogChannel {
|
||||
include?: LogType[];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Plugin, decorators as d, waitForReaction } from "knub";
|
||||
import { Guild, GuildAuditLogEntry, Member, Message, TextChannel, User } from "eris";
|
||||
import * as moment from "moment-timezone";
|
||||
import * as humanizeDuration from "humanize-duration";
|
||||
import moment from "moment-timezone";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import { GuildCases } from "../data/GuildCases";
|
||||
import {
|
||||
convertDelayStringToMS,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"module": "commonjs",
|
||||
"noImplicitAny": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
|
@ -10,6 +11,8 @@
|
|||
"es7",
|
||||
"ES2017"
|
||||
],
|
||||
"baseUrl": "./"
|
||||
"baseUrl": "./",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue