0.1.7 • Published 7 months ago
@types/codependency v0.1.7
Installation
npm install --save @types/codependency
Summary
This package contains type definitions for codependency (https://github.com/Wizcorp/codependency).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/codependency.
index.d.ts
// Type definitions for codependency 0.1
// Project: https://github.com/Wizcorp/codependency
// Definitions by: Morgan Benton <https://github.com/morphatic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
export as namespace codependency;
export interface DependencyInfo {
supportedRange: string|null;
installedVersion: string|null;
isInstalled: boolean|null;
isValid: boolean|null;
pkgPath: string;
}
export interface RequirePeerFunctionOptions {
optional?: boolean | undefined;
dontThrow?: boolean | undefined;
}
export interface RequirePeerFunction {
(name: string, options?: RequirePeerFunctionOptions): any;
resolve(name: string): DependencyInfo;
}
export function register(baseModule: NodeModule, options?: {index: string[]}): RequirePeerFunction;
export function get(middlewareName: string): RequirePeerFunction;
Additional Details
- Last updated: Thu, 08 Jul 2021 09:08:01 GMT
- Dependencies: @types/node
- Global values:
codependency
Credits
These definitions were written by Morgan Benton.