Completed Challenges
Primitive Data Types
Your TypeScript journey starts with these building blocks.
Absolute
Implement the Absolute
type. A type that take string, number or bigint. The output should be a p
Get Return Type
Implement the built-in ReturnType<T>
generic without using it.
For example
const fn = (v
Assign
You have a target object and a source array of objects. You need to copy property from source to t
Simple Vue
Implement a simpiled version of a Vue-like typing support.
By providing a function name `SimpleVu
Readonly
Implement the built-in Readonly<T>
generic without using it.
Constructs a type with all proper
All
Returns true if all elements of the list are equal to the second parameter passed in, false if the
Construct Tuple
Construct a tuple with a given length.
For example
type result = ConstructTuple<2> // expe
Remove Index Signature
Implement RemoveIndexSignature<T>
, exclude the index signature from object types.
For example: