Update src/prelude/types.ts
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
parent
2c494f1052
commit
afb7d5d56b
|
@ -1 +1 @@
|
|||
export type Resolved<P extends Promise<any>> = P extends Promise<infer R> ? R : never;
|
||||
export type Resolved<P> = P extends PromiseLike<infer R> ? Resolved<R> : never;
|
||||
|
|
Loading…
Reference in a new issue