Skip to content

Commit

Permalink
TsConfigJson: Fix Plugin type (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Feb 9, 2023
1 parent 2ef0940 commit e3b1e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions source/tsconfig-json.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,10 @@ declare namespace TsConfigJson {
| 'webworker.iterable';

export type Plugin = {
[key: string]: unknown;
/**
Plugin name.
*/
name?: string;
name: string;
};

export type ImportsNotUsedAsValues =
Expand Down
5 changes: 3 additions & 2 deletions test-d/tsconfig-json.ts
Original file line number Diff line number Diff line change
@@ -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 = {};

Expand All @@ -11,3 +11,4 @@ expectType<string[] | undefined>(tsConfig.files);
expectType<string[] | undefined>(tsConfig.include);
expectType<TsConfigJson.References[] | undefined>(tsConfig.references);
expectType<TsConfigJson.TypeAcquisition | undefined>(tsConfig.typeAcquisition);
expectAssignable<Jsonifiable>(tsConfig);

0 comments on commit e3b1e96

Please sign in to comment.