nodelib-fs-macchiato/out/types.d.ts
raw| 1 | export declare type PrepareOptionsFromClass<T> = { |
| 2 | [TKey in keyof T]?: UnboxReturnTypeFromClassItem<T[TKey]>; |
| 3 | }; |
| 4 | export declare type UnboxReturnTypeFromClassItem<T> = |
| 5 | /** |
| 6 | * Unbox return type from class method. |
| 7 | */ |
| 8 | T extends (...args: unknown[]) => infer TReturnType ? TReturnType : |
| 9 | /** |
| 10 | * Unbox return type from class property. |
| 11 | */ |
| 12 | T extends (infer TReturnType) ? TReturnType : |
| 13 | /** |
| 14 | * Default branch. Potentially impossible case. |
| 15 | */ |
| 16 | T; |