From 74891f0dfdf2aeb8bcde352d60342e54e672b4d8 Mon Sep 17 00:00:00 2001 From: hiroki osame Date: Mon, 13 Jun 2022 06:39:44 -0400 Subject: [PATCH] Fix `TsConfigJson` to require `paths` array (#404) --- source/tsconfig-json.d.ts | 2 +- test-d/tsconfig-json.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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});