Skip to content

PackageJsonStandard.engines should use LiteralUnion to improve IDE autocomplete #1225

@oliveryasuna

Description

@oliveryasuna

https://github.com/sindresorhus/type-fest/blob/main/source/package-json.d.ts#L508

Change to:

		engines?: {
			[EngineName in LiteralUnion<'npm' | 'node', string>]?: string;
		};

The contribution file only mentions new types, so not sure how to proceed. Happy to open a PR myself; just let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions