mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-24 05:45:50 +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/_';
|
import triggers from './triggers/_';
|
||||||
|
|
||||||
// Check for environmental variables.
|
// Check for environmental variables.
|
||||||
// eslint-disable-next-line
|
|
||||||
import * as checkenv from 'checkenv';
|
import * as checkenv from 'checkenv';
|
||||||
checkenv.setConfig(require('../env.json'));
|
checkenv.setConfig(require('../env.json'));
|
||||||
checkenv.check();
|
checkenv.check();
|
||||||
|
@ -11,7 +11,11 @@
|
|||||||
"lib": [
|
"lib": [
|
||||||
"es2018",
|
"es2018",
|
||||||
"dom"
|
"dom"
|
||||||
]
|
],
|
||||||
|
"typeRoots": [
|
||||||
|
"./typings",
|
||||||
|
"./node_modules/@types/"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*"
|
"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