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

0.1.0 • Public • Published

Installation

npm install --save @types/get-package-type

Summary

This package contains type definitions for get-package-type (https://github.com/cfware/get-package-type#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/get-package-type.

index.d.ts

type PackageType = "module" | "commonjs";

interface GetPackageType {
    (filename: string): Promise<PackageType>;
    sync(filename: string): PackageType;
}

declare const getPackageType: GetPackageType;

export = getPackageType;

Additional Details

  • Last updated: Fri, 12 Jan 2024 22:06:56 GMT
  • Dependencies: none

Credits

These definitions were written by Corey Farrell, and Jordan Harband.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/get-package-type

      Weekly Downloads

      8,009

      Version

      0.1.0

      License

      MIT

      Unpacked Size

      3.27 kB

      Total Files

      5

      Last publish

      Collaborators

      • types