diff --git a/source/tsconfig-json.d.ts b/source/tsconfig-json.d.ts index 26b8851de..18a7294c5 100644 --- a/source/tsconfig-json.d.ts +++ b/source/tsconfig-json.d.ts @@ -713,7 +713,7 @@ declare namespace TsConfigJson { /** Specify path mapping to be computed relative to baseUrl option. */ - paths?: Partial>; + paths?: Record; /** List of TypeScript language server plugins to load. diff --git a/test-d/tsconfig-json.ts b/test-d/tsconfig-json.ts index 337a48d77..e6a3b4059 100644 --- a/test-d/tsconfig-json.ts +++ b/test-d/tsconfig-json.ts @@ -1,4 +1,4 @@ -import {expectType, expectAssignable} from 'tsd'; +import {expectType} from 'tsd'; import type {TsConfigJson} from '../index'; const tsConfig: TsConfigJson = {}; @@ -11,6 +11,3 @@ expectType(tsConfig.files); expectType(tsConfig.include); expectType(tsConfig.references); expectType(tsConfig.typeAcquisition); - -// Undefined assigns -expectAssignable['paths']>({path: undefined});