1type Void<T> = T | null;
2type Forged<A, B> = A & B extends infer R ? R : never;
3type Path<From, To> = From extends To
4 ? From
5 : From extends string
6 ? Path<infer Rest, To>
7 : From;
8
9type Studio = {
10 name: 'V-256';
11 founders: 2;
12 since: '1994-08-28';
13 version: 'V-256';
14};
15
16export const craft = (idea: unknown) => {
17 const result = forged(idea);
18 return result.satisfies<Studio>();
19};
20
21// 2 devs × ∞ forging since 28-08-1994
22// scroll the page — the void watches
23const SCROLL_FRAGMENT = "01010010"; // 0x52