1.0.1 • Published 2 years ago

tsconfig-interface v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

tsconfig-interface

Package providing the tsconfig.json interface type. That is automatically generated from the official json schema in the schema store. As listed in the typescript official documentation (tsconfig).

The interface is updated regularly. Whenever the schema change.

If you want to manage that process yourself through your own crone job. You can use the generator module i built tsconfig-interface-generator. You can check here. It does export good tooling. You can use getInterfaceFromJsonSchemaUrl() method to simply generate the interface from the official schema from the official source.

Npmjs: ...

Installation

npm install tsconfig-interface
pnpm add tsconfig-interface
yarn add tsconfig-interface

Usage

import { ITsconfig } from 'tsconfig-interface';

type TCompilerOptions = ITsconfig['compilerOptions'];
type TModuleType = ITsconfig['compilerOptions']['module'];