Parameters

@typehero
Last updated 3 months ago
EASY

Implement the built-in Parameters generic without using it.

For example:

const foo = (arg1: string, arg2: number): void => {} type FunctionParamsType = MyParameters<typeof foo> // [arg1: string, arg2: number]

This challenge was ported from Type Challenges and was authored by midorizemi

Loading...
Loading...