DefinitelyTyped/types/engine-check/engine-check-tests.ts
jgeth 2410b43e91 Updates engine-check definition for default module export (#35605)
checkVersion() is the module export from source package
Updates type definition accordingly and namespaces the config option interface
Updates tests to reference new definition

Updates version to 1.1
2019-05-20 15:37:03 -07:00

11 lines
197 B
TypeScript

import * as engineCheck from "engine-check";
const options: engineCheck.Options = {
searchRoot: "/",
silent: true,
debug: true
};
engineCheck();
engineCheck({});
engineCheck(options);