Extreme

Get Readonly Keys

EXTREME
1
2
@typehero
5 months ago

Implement a generic GetReadonlyKeys<T> that returns a union of the readonly keys of an Object.

Query String Parser

EXTREME
0
9
@typehero
5 months ago

You're required to implement a type-level parser to parse URL query string into a object literal t

Slice

EXTREME
0
3
@typehero
5 months ago

Implement the JavaScript Array.slice function in the type system. Slice<Arr, Start, End> takes

Integers Comparator

EXTREME
0
5
@typehero
5 months ago

Implement a type-level integers comparator. We've provided an enum for indicating the comparison r

Currying 2

EXTREME
1
1
@typehero
5 months ago

Currying is the technique of converting a function that

Sum

EXTREME
0
4
@typehero
5 months ago

Implement a type Sum<A, B> that summing two non-negative integers and returns the sum as a strin

Tag

EXTREME
0
1
@typehero
5 months ago

Despite the structural typing system in TypeScript, it is sometimes convenient to mark some types

Inclusive Range

EXTREME
0
1
@typehero
5 months ago

Recursion depth in type system is one of the limitations of TypeScript, the number is around 45.

Sort

EXTREME
0
4
@typehero
5 months ago

In this challenge, you are required to sort natural number arrays in either ascend order or descen

DistributeUnions

EXTREME
0
2
@typehero
5 months ago

Implement a type Distribute Unions, that turns a type of data structure containing union types i

Assert Array Index

EXTREME
0
3
@typehero
5 months ago

Sometimes we want to use the good old for-loop with an index to traverse the array, but in this

JSON Parser

EXTREME
3
1
@typehero
5 months ago

You're required to implement a type-level partly parser to parse JSON string into a object literal

Subtract

EXTREME
0
2
@typehero
5 months ago

Implement the type Subtraction that is - in Javascript by using BuildTuple.

If the minuend is

CountReversePairs

EXTREME
2
4
@typehero
5 months ago

Given an integer array nums, return the number of reverse pairs in the array.

A reverse pair is

Parameter Intersection

EXTREME
0
1
@typehero
5 months ago

Given two parameter arrays, compute a third tuple representing the type of args required to satisf

Dynamic Route

EXTREME
0
4
@typehero
5 months ago

Given below routes, infer its dynamic params. | Route | Params Type Defi