diff --git a/source/tsconfig-json.d.ts b/source/tsconfig-json.d.ts index b18b25a25..1eb4e137c 100644 --- a/source/tsconfig-json.d.ts +++ b/source/tsconfig-json.d.ts @@ -188,11 +188,10 @@ declare namespace TsConfigJson { | 'webworker.iterable'; export type Plugin = { - [key: string]: unknown; /** Plugin name. */ - name?: string; + name: string; }; export type ImportsNotUsedAsValues = diff --git a/test-d/tsconfig-json.ts b/test-d/tsconfig-json.ts index e6a3b4059..b66600954 100644 --- a/test-d/tsconfig-json.ts +++ b/test-d/tsconfig-json.ts @@ -1,5 +1,5 @@ -import {expectType} from 'tsd'; -import type {TsConfigJson} from '../index'; +import {expectType, expectAssignable} from 'tsd'; +import type {Jsonifiable, TsConfigJson} from '../index'; const tsConfig: TsConfigJson = {}; @@ -11,3 +11,4 @@ expectType(tsConfig.files); expectType(tsConfig.include); expectType(tsConfig.references); expectType(tsConfig.typeAcquisition); +expectAssignable(tsConfig);