mirror of
https://github.com/citra-emu/discord-bot.git
synced 2024-12-22 20:05:40 +00:00
typings: add shim typing for checkenv
This commit is contained in:
parent
29388049ac
commit
3e1b010cae
|
@ -8,7 +8,6 @@ import modules from './commands/_';
|
|||
import triggers from './triggers/_';
|
||||
|
||||
// Check for environmental variables.
|
||||
// eslint-disable-next-line
|
||||
import * as checkenv from 'checkenv';
|
||||
checkenv.setConfig(require('../env.json'));
|
||||
checkenv.check();
|
||||
|
|
|
@ -11,7 +11,11 @@
|
|||
"lib": [
|
||||
"es2018",
|
||||
"dom"
|
||||
]
|
||||
],
|
||||
"typeRoots": [
|
||||
"./typings",
|
||||
"./node_modules/@types/"
|
||||
],
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
|
|
5
typings/checkenv/index.d.ts
vendored
Normal file
5
typings/checkenv/index.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
declare module 'checkenv';
|
||||
|
||||
export function load(): string;
|
||||
export function check(): void;
|
||||
export function setConfig(config: any): void;
|
Loading…
Reference in a new issue