1.28.0 • Published 23 days ago

tsconfig-type v1.28.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
23 days ago

Tsconfig Type

A tsconfig.json type, regularly regenerated based on the schemastore.org definition.

Installation

npm i tsconfig-type

Usage

import {Tsconfig} from "tsconfig-type";

const tsconfig: Tsconfig = {
    // ...
};

Rationale

I was trying to build a tool which would allow users to specify their TypeScript configuration in TypeScript (not JSON). To my dismay, I found no up-to-date type definition. One would think that such a type definition would be exposed from the typescript package itself, but it is not. Meanwhile hand-written definitions are prone to fall behind the latest TypeScript versions.

This type is a response to (what I felt) was a lack of great options. tsconfig-type is regularly (on a weekly basis) regenerated from the latest JSON schema. First, the generation script fetches the JSON schema and runs it through json-schema-to-typescript. Next, that output undergoes a series of transforms. Finally, the resulting type is auto-published to NPM with a minor version increment. In this regard, this package does not strictly follow semver (I'd recommend pinning).

1.28.0

23 days ago

1.26.0

2 years ago

1.27.0

2 years ago

1.25.0

2 years ago

1.24.0

2 years ago

1.23.0

2 years ago

1.22.0

2 years ago

1.21.0

3 years ago

1.18.0

3 years ago

1.20.0

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago