0.2.2 • Published 8 months ago

typle-core v0.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

typle-core

Programmatic way of scanning package.json for missing @types libraries.\ You probably want to use typle instead.

API

This package exports a few functions that can help you find libraries with missing types.

filterTypes(pkg, cwd?)

Filter libraries that don't have types built-in or types installed.

function filterTypes(pkg: PackageJson, cwd?: string): Promise<{
    name: string;
    version: string | undefined;
}[]>;

hasOwnTypes(lib, cwd?)

Does a library provide built-in type definitions.\ Note that it has to be installed locally first.

function hasOwnTypes(lib: string, cwd?: string): Promise<boolean>;

fetchPackage(lib)

Fetch package Packument in NPM registry.\ Returns undefined if it was not found.

function fetchPackage(lib: string): Promise<Packument | undefined>;

License

MIT 💖

0.2.2

8 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

2 years ago

0.1.0

2 years ago