mirror of
https://github.com/sindresorhus/type-fest.git
synced 2025-12-08 19:25:05 +00:00
PackageJson: Support condition object in exports array (#439)
This commit is contained in:
parent
1a69e6379d
commit
290e3a29ca
8
source/package-json.d.ts
vendored
8
source/package-json.d.ts
vendored
@ -223,15 +223,17 @@ declare namespace PackageJson {
|
||||
string
|
||||
>;
|
||||
|
||||
type ExportConditions = {[condition in ExportCondition]: Exports};
|
||||
|
||||
/**
|
||||
Entry points of a module, optionally with conditions and subpath exports.
|
||||
*/
|
||||
export type Exports =
|
||||
| null
|
||||
| string
|
||||
| string[]
|
||||
| {[key in ExportCondition]: Exports}
|
||||
| {[key: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
||||
| Array<string | ExportConditions>
|
||||
| ExportConditions
|
||||
| {[path: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
||||
|
||||
/**
|
||||
Import map entries of a module, optionally with conditions.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user