Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.81 KB

File metadata and controls

13 lines (8 loc) · 1.81 KB

Parameters easy #infer #tuple #built-in

by midorizemi @midorizemi

Take the Challenge    简体中文 日本語 한국어

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]

Back Share your Solutions Check out Solutions