Skip to content

feat: add execOptions #9

@ZeRiix

Description

@ZeRiix
type ComputeResult<
	GenericOptions extends [Option, ...Option[]],
> = {
	[GenericOptionName in GenericOptions[number]["name"]]: Exclude<
		ReturnType<
			Extract<
				GenericOptions[number],
				{ name: GenericOptionName }
			>["execute"]
		>,
		SymbolCommandError
	>["result"]
};

export declare function execOptions<
	GenericOptions extends [Option, ...Option[]],
>(
	...options: GenericOptions
): ComputeResult<GenericOptions>;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions