🎧
Pinned Loading
-
Type for an abstract function *get*.
Type for an abstract function *get*. 1// For the given type, it will return the union of all possible paths recursively or not.
23// Tested in https://www.typescriptlang.org/play
4// TS version - 3.7.5
5 -
Playing with the case where you have...
Playing with the case where you have an object of type T and an object of type O where the object being validated must have at least a single property of the O type which validates it. 1// ------------------------------------------cut------------------------------------------------------
2type TObj = { id?: number, id2?: number };
34type Path<T> = PathTree<T>[keyof PathTree<T>];
5 -
Playing with template types...
Playing with template types... 1// Utils
2type Assert<A, B extends A> = any;
34type Repeat<S extends string, NumberList> = NumberList extends [
5infer _,
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.