Featured
Latest
Advanced types / Holy.js notes
The power of TypeScript will be revealed by the example of several tasks from type-challenges of the hard level.
GetOptional
Given an object, returns object with all optional fields
StringToNumber
Given a number as string literal type, returns a number as number literal type
Split
Given a string and a separator, returns an array or a tuple with the substrings between the separator
Tuple Filter
Given a tuple and a filter, returns the tuple without elements that are part of the filter
Spread in Object types
Given two objects, returns the object which is formed as a spread of two objects