@types/codependency
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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

/// <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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Morgan Benton.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/codependency

Weekly Downloads

10

Version

0.1.7

License

MIT

Unpacked Size

4.04 kB

Total Files

5

Last publish

Collaborators

  • types