mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-24 03:05:49 +01: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 New Issue
Block a user