typings: add shim typing for checkenv

This commit is contained in:
liushuyu 2022-09-14 02:30:56 -06:00
parent 29388049ac
commit 3e1b010cae
3 changed files with 10 additions and 2 deletions

View file

@ -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();

View file

@ -11,7 +11,11 @@
"lib": [
"es2018",
"dom"
]
],
"typeRoots": [
"./typings",
"./node_modules/@types/"
],
},
"include": [
"src/**/*"

5
typings/checkenv/index.d.ts vendored Normal file
View file

@ -0,0 +1,5 @@
declare module 'checkenv';
export function load(): string;
export function check(): void;
export function setConfig(config: any): void;