DefinitelyTyped/types/engine-check/index.d.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

15 lines
448 B
TypeScript

// Type definitions for engine-check 1.1
// Project: https://github.com/ppvg/node-engine-check
// Definitions by: jgeth <https://github.com/jgeth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace engineCheck {
interface Options {
searchRoot?: string;
silent?: boolean;
debug?: boolean;
}
}
declare function engineCheck(options?: engineCheck.Options): void;
export = engineCheck;