(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <?php | |
| //Enums/ContactType.php | |
| namespace App\Enums; | |
| use App\Enums\Traits\LocalizedEnum; | |
| enum ContactType: string | |
| { | |
| use LocalizedEnum; |
| export type PromiseType<T extends Promise<any>> = T extends Promise<infer U> | |
| ? U | |
| : never | |
| export type Arguments<T> = T extends (...args: infer U) => infer R ? U : never | |
| export type ReplaceReturn<T, TNewReturn> = (...a: Arguments<T>) => TNewReturn | |
| type Fn = (...args: any[]) => any | |
| export type Go<E extends Error, T extends Fn> = { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.