TSConfig interface to validate tsconfig.json value.
npm install @mnrendra/types-tsconfigtsconfig.json interface extended from the official and unofficial fields.bash
npm i -D @mnrendra/types-tsconfig
`Usage
`typescript
import type { TSConfig } from '@mnrendra/types-tsconfig'import { readFileSync } from 'fs'
import { resolve } from 'path'
import { cwd } from 'process'
import * as JSON5 from 'json5'
const { compilerOptions }: TSConfig = JSON5.parse(readFileSync(resolve(cwd(), 'tsconfig.json'), 'utf-8'))
console.log(compilerOptions)
`Types
`typescript
import type {
TSConfig // tsconfig.json interface extended from the official and unofficial fields.
// Interfaces
BuildOptions,
CompileOnSave,
CompilerOptions,
BaseURL,
Paths,
Exclude,
Extends,
Files,
Include,
MDX,
References,
TSNode,
WatchOptions,
TypeAcquisition
} from '@mnrendra/types-tsconfig'
``