Update to Knub 29. Set up config types for Knub.

This commit is contained in:
Dragory 2020-01-12 13:37:43 +02:00
parent 3e974e84b3
commit 94ef7b8ee0
6 changed files with 28 additions and 6 deletions

14
backend/src/types.ts Normal file
View file

@ -0,0 +1,14 @@
import { IGlobalConfig, IGuildConfig, Knub } from "knub";
// Remove this tslint exception once there are properties in the interface
// tslint:disable-next-line
export interface IZeppelinGuildConfig extends IGuildConfig {
// To fill
}
export interface IZeppelinGlobalConfig extends IGlobalConfig {
url: string;
owners?: string[];
}
export type TZeppelinKnub = Knub<IZeppelinGuildConfig, IZeppelinGlobalConfig>;