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/_'; 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();

View File

@ -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
View File

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