mirror of
https://github.com/sindresorhus/type-fest.git
synced 2025-12-08 19:25:05 +00:00
Fix TsConfigJson to require paths array (#404)
This commit is contained in:
parent
dfaba0eb25
commit
74891f0dfd
2
source/tsconfig-json.d.ts
vendored
2
source/tsconfig-json.d.ts
vendored
@ -713,7 +713,7 @@ declare namespace TsConfigJson {
|
||||
/**
|
||||
Specify path mapping to be computed relative to baseUrl option.
|
||||
*/
|
||||
paths?: Partial<Record<string, string[]>>;
|
||||
paths?: Record<string, string[]>;
|
||||
|
||||
/**
|
||||
List of TypeScript language server plugins to load.
|
||||
|
||||
@ -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<string[] | undefined>(tsConfig.files);
|
||||
expectType<string[] | undefined>(tsConfig.include);
|
||||
expectType<TsConfigJson.References[] | undefined>(tsConfig.references);
|
||||
expectType<TsConfigJson.TypeAcquisition | undefined>(tsConfig.typeAcquisition);
|
||||
|
||||
// Undefined assigns
|
||||
expectAssignable<NonNullable<typeof tsConfig['compilerOptions']>['paths']>({path: undefined});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user